File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 2929 "purescript-maybe" : " ^4.0.0" ,
3030 "purescript-strings" : " ^4.0.0" ,
3131 "purescript-transformers" : " ^4.1.0" ,
32- "purescript-unicode" : " ^4.0.0"
32+ "purescript-unicode" : " ^4.0.0" ,
33+ "purescript-generics-rep" : " ^6.1.1"
3334 },
3435 "devDependencies" : {
3536 "purescript-assert" : " ^4.0.0" ,
Original file line number Diff line number Diff line change 33 [ " arrays"
44 , " assert"
55 , " console"
6+ , " generics-rep"
67 , " effect"
78 , " either"
89 , " foldable-traversable"
Original file line number Diff line number Diff line change 11module Text.Parsing.Parser.Pos where
22
33import Prelude
4+ import Data.Generic.Rep (class Generic )
45import Data.Foldable (foldl )
56import Data.Newtype (wrap )
67import Data.String (split )
@@ -14,6 +15,8 @@ newtype Position = Position
1415 , column :: Int
1516 }
1617
18+ derive instance genericPosition :: Generic Position _
19+
1720instance showPosition :: Show Position where
1821 show (Position { line: line, column: column }) =
1922 " (Position { line: " <> show line <> " , column: " <> show column <> " })"
You can’t perform that action at this time.
0 commit comments