on master help sign in
Merge pull request #85 from khumba/unexpectedevent

Fix pretty-printing order of UnexpectedEvent's fields (fixes #84)

commitc3f44555e10fa15f114a5e77859eda7b12c31ba7 authorMichael Snoyman <michael@snoyman.com> dateThu 9 Jun 2016, 21:38 (10 years ago) parenta3236305b0bf4f
1 file changed+1−1
Data/Yaml/Internal.hs+1−1
Data/Yaml/Internal.hs+1−1
@@ -78,7 +78,7 @@ prettyPrintParseException :: ParseException -> String
7878prettyPrintParseException pe = case pe of
7979 NonScalarKey -> "Non scalar key"
8080 UnknownAlias anchor -> "Unknown alias `" ++ anchor ++ "`"
81− UnexpectedEvent mbExpected mbUnexpected -> unlines
81+ UnexpectedEvent { _expected = mbExpected, _received = mbUnexpected } -> unlines
8282 [ "Unexpected event: expected"
8383 , " " ++ show mbExpected
8484 , "but received"