Safe Haskell | None |
---|---|
Language | Haskell2010 |
Duplicates a subset of the Stack ADT. It'd be nice if we could just re-use the actual ADT, but stack isn't available as a library that we can build from Hackage.
Synopsis
- localDirs :: Stack -> NonEmpty FilePath
- readStack :: ByteString -> IO Stack
- unroll :: FilePath -> Stack -> IO Resolvers
- resolve :: Maybe FilePath -> ResolverRef -> IO (Maybe FilePath, Resolver)
- cache :: Text -> IO FilePath
- stack2resolver :: Stack -> Resolver
- new2old :: NewResolver -> Resolver
- mergeResolvers :: Resolver -> Resolver -> Resolver
- decode1Strict :: FromYAML a => ByteString -> Either String a
Documentation
stack2resolver :: Stack -> Resolver Source #
new2old :: NewResolver -> Resolver Source #
mergeResolvers :: Resolver -> Resolver -> Resolver Source #
Merging two resolvers is straight-forward, except for handling Git deps. These need to be merged carefully, because stack.yaml may add subdirs to the repo of a resolver. Also see: https://github.com/hasufell/stack2cabal/issues/30
decode1Strict :: FromYAML a => ByteString -> Either String a Source #