Using stringCI.
Suggested by eagletmt.
This commit is contained in:
parent
819d915aae
commit
92777ed539
17
Cabal.hs
17
Cabal.hs
@ -1,3 +1,4 @@
|
|||||||
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
module Cabal (initializeGHC) where
|
module Cabal (initializeGHC) where
|
||||||
|
|
||||||
import Control.Applicative hiding (many)
|
import Control.Applicative hiding (many)
|
||||||
@ -46,21 +47,7 @@ findTarget = Just <$> hs_source_dirs
|
|||||||
|
|
||||||
hs_source_dirs :: Parser [String]
|
hs_source_dirs :: Parser [String]
|
||||||
hs_source_dirs = do
|
hs_source_dirs = do
|
||||||
satisfy $ inClass "hH"
|
stringCI "hs-source-dirs:"
|
||||||
satisfy $ inClass "sS"
|
|
||||||
char '-'
|
|
||||||
satisfy $ inClass "sS"
|
|
||||||
satisfy $ inClass "oO"
|
|
||||||
satisfy $ inClass "uU"
|
|
||||||
satisfy $ inClass "rR"
|
|
||||||
satisfy $ inClass "cC"
|
|
||||||
satisfy $ inClass "eE"
|
|
||||||
char '-'
|
|
||||||
satisfy $ inClass "dD"
|
|
||||||
satisfy $ inClass "iI"
|
|
||||||
satisfy $ inClass "rR"
|
|
||||||
satisfy $ inClass "sS"
|
|
||||||
char ':'
|
|
||||||
many (char ' ')
|
many (char ' ')
|
||||||
sepBy1 (many . satisfy $ notInClass " ,\n") (many1 . satisfy $ inClass " ,")
|
sepBy1 (many . satisfy $ notInClass " ,\n") (many1 . satisfy $ inClass " ,")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user