Commit efb556cc authored by Sebastian Graf's avatar Sebastian Graf Committed by Ryan Scott

Remove an unused match (#18)

* Remove an unused match

This fixes a warning, so that we can validate with `-Werror` again.

* Add ghc-options: -Wall to hsc2hs.cabal
parent fac8b62e
......@@ -167,7 +167,7 @@ text = do
'\"':_ -> do anyChar_; hsString '\"'; text
-- See Note [Single Quotes]
'\'':'\\':_ -> do anyChar_; hsString '\''; text -- Case 1
'\'':d:'\'':_ -> do any3Chars_; text -- Case 2
'\'':_:'\'':_ -> do any3Chars_; text -- Case 2
'\'':d:_ | isSpace d -> do -- Case 3
any2Chars_
manySatisfy_ (\c' -> isSpace c')
......
......@@ -61,6 +61,8 @@ Executable hsc2hs
directory >= 1.1.0 && < 1.4,
filepath >= 1.2.0 && < 1.5,
process >= 1.1.0 && < 1.7
ghc-options: -Wall
if flag(in-ghc-tree)
cpp-options: -DIN_GHC_TREE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment