-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use megaparsec 6.0 #56
Conversation
18907dd
to
65a30d3
Compare
737ba2e
to
07ebc72
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious about the comment I made... everything else looks good...
@@ -141,5 +142,5 @@ spec = describe "parse" $ do | |||
it "doesn't allow more configuration options after a quoted value" $ | |||
parseConfig `shouldFailOn` "foo='bar'baz='buz'" | |||
|
|||
parseConfig :: String -> Either (ParseError Char Dec) [ParsedVariable] | |||
parseConfig :: String -> Either (ParseError Char Void) [ParsedVariable] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@juanpaucar could you just tell me why the type Dec
changed to Void
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because as mentioned in he first part of the documentation I defined a type alias for parser type Parser = Parsec Void String
and ParseError
must keep the same type. So, in this case it would be Void
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@juanpaucar looks good so far. I just left some comments.
dotenv.cabal
Outdated
@@ -55,7 +55,7 @@ executable dotenv | |||
, base-compat >= 0.4 | |||
, dotenv >= 0.3.1.0 | |||
, optparse-applicative >=0.11 && < 0.15 | |||
, megaparsec >= 5.0 && < 6.0 | |||
, megaparsec >= 5.0 && < 7.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@juanpaucar I think you need to increase the lower boundary as well.
dotenv.cabal
Outdated
@@ -75,11 +75,14 @@ library | |||
|
|||
build-depends: base >=4.6 && <5.0 | |||
, base-compat >= 0.4 | |||
, megaparsec >= 5.0 && < 6.0 | |||
, megaparsec >= 5.0 && < 7.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@juanpaucar same here
07ebc72
to
6fdcec8
Compare
6fdcec8
to
6c26814
Compare
6c26814
to
f3c000b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@juanpaucar nice job. LGTM
Fixes commercialhaskell/stackage#2666