Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
normalize :: Derivation -> Derivation Source #
normalizeCabalFlags :: FlagAssignment -> FlagAssignment Source #
When a flag is specified multiple times, the first occurrence counts. This is counter-intuitive, IMHO, but it's how cabal does it. Flag names are spelled in all lowercase.
>>>
normalizeCabalFlags [(mkFlagName "foo", True), (mkFlagName "FOO", True), (mkFlagName "Foo", False)]
[(FlagName "foo",True)]