Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"purescript-maybe": "^4.0.0",
"purescript-strings": "^4.0.0",
"purescript-transformers": "^4.1.0",
"purescript-unicode": "^4.0.0"
"purescript-unicode": "^4.0.0",
"purescript-generics-rep": "^6.1.1"
},
"devDependencies": {
"purescript-assert": "^4.0.0",
Expand Down
1 change: 1 addition & 0 deletions spago.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[ "arrays"
, "assert"
, "console"
, "generics-rep"
, "effect"
, "either"
, "foldable-traversable"
Expand Down
3 changes: 3 additions & 0 deletions src/Text/Parsing/Parser/Pos.purs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module Text.Parsing.Parser.Pos where

import Prelude
import Data.Generic.Rep (class Generic)
import Data.Foldable (foldl)
import Data.Newtype (wrap)
import Data.String (split)
Expand All @@ -14,6 +15,8 @@ newtype Position = Position
, column :: Int
}

derive instance genericPosition :: Generic Position _

instance showPosition :: Show Position where
show (Position { line: line, column: column }) =
"(Position { line: " <> show line <> ", column: " <> show column <> " })"
Expand Down