Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
Documentation
data InstalledNormalised Source #
Instances
Show InstalledNormalised Source # | |
Defined in HaskellCI.Config.Installed showsPrec :: Int -> InstalledNormalised -> ShowS # show :: InstalledNormalised -> String # showList :: [InstalledNormalised] -> ShowS # |
normaliseInstalled :: [Installed] -> InstalledNormalised Source #
Normalised
>>>
parseI = maybe (error "foo") id . traverse C.simpleParsec
>>>
normaliseInstalled $ parseI ["-Cabal"]
InstalledDiff (fromList [PackageName "Cabal"])
>>>
normaliseInstalled $ parseI ["-all"]
InstalledOnly (fromList [])
>>>
normaliseInstalled $ parseI ["-all", "+transformers"]
InstalledOnly (fromList [PackageName "transformers"])