File tree 3 files changed +6
-1
lines changed 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 29
29
"purescript-maybe" : " ^4.0.0" ,
30
30
"purescript-strings" : " ^4.0.0" ,
31
31
"purescript-transformers" : " ^4.1.0" ,
32
- "purescript-unicode" : " ^4.0.0"
32
+ "purescript-unicode" : " ^4.0.0" ,
33
+ "purescript-generics-rep" : " ^6.1.1"
33
34
},
34
35
"devDependencies" : {
35
36
"purescript-assert" : " ^4.0.0" ,
Original file line number Diff line number Diff line change 3
3
[ " arrays"
4
4
, " assert"
5
5
, " console"
6
+ , " generics-rep"
6
7
, " effect"
7
8
, " either"
8
9
, " foldable-traversable"
Original file line number Diff line number Diff line change 1
1
module Text.Parsing.Parser.Pos where
2
2
3
3
import Prelude
4
+ import Data.Generic.Rep (class Generic )
4
5
import Data.Foldable (foldl )
5
6
import Data.Newtype (wrap )
6
7
import Data.String (split )
@@ -14,6 +15,8 @@ newtype Position = Position
14
15
, column :: Int
15
16
}
16
17
18
+ derive instance genericPosition :: Generic Position _
19
+
17
20
instance showPosition :: Show Position where
18
21
show (Position { line: line, column: column }) =
19
22
" (Position { line: " <> show line <> " , column: " <> show column <> " })"
You can’t perform that action at this time.
0 commit comments