| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Distribution.Nixpkgs.Haskell.FromCabal.Normalize
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 [(FlagName "foo", True), (FlagName "FOO", True), (FlagName "Foo", False)][(FlagName "foo",True)]