stackage-to-hackage-1.1.0: Convert stack.yaml to cabal.project + cabal.project.freeze

Safe HaskellNone
LanguageHaskell2010

StackageToHackage.Stackage

Description

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.

Documentation

data Stack Source #

Constructors

Stack 
Instances
Show Stack Source # 
Instance details

Defined in StackageToHackage.Stackage

Methods

showsPrec :: Int -> Stack -> ShowS #

show :: Stack -> String #

showList :: [Stack] -> ShowS #

FromYAML Stack Source # 
Instance details

Defined in StackageToHackage.Stackage

Methods

parseYAML :: Node -> Parser Stack #

newtype Ghc Source #

Constructors

Ghc Text 
Instances
Show Ghc Source # 
Instance details

Defined in StackageToHackage.Stackage

Methods

showsPrec :: Int -> Ghc -> ShowS #

show :: Ghc -> String #

showList :: [Ghc] -> ShowS #

FromYAML Ghc Source # 
Instance details

Defined in StackageToHackage.Stackage

Methods

parseYAML :: Node -> Parser Ghc #

data Package Source #

Constructors

Local FilePath 
Location Git 
Instances
Show Package Source # 
Instance details

Defined in StackageToHackage.Stackage

FromYAML Package Source # 
Instance details

Defined in StackageToHackage.Stackage

data Git Source #

Constructors

Git 

Fields

Instances
Show Git Source # 
Instance details

Defined in StackageToHackage.Stackage

Methods

showsPrec :: Int -> Git -> ShowS #

show :: Git -> String #

showList :: [Git] -> ShowS #

FromYAML Git Source # 
Instance details

Defined in StackageToHackage.Stackage

Methods

parseYAML :: Node -> Parser Git #

type Repo = Text Source #

data Dep Source #

Constructors

Hackage PkgId 
SourceDep Git 
Instances
Show Dep Source # 
Instance details

Defined in StackageToHackage.Stackage

Methods

showsPrec :: Int -> Dep -> ShowS #

show :: Dep -> String #

showList :: [Dep] -> ShowS #

FromYAML Dep Source # 
Instance details

Defined in StackageToHackage.Stackage

Methods

parseYAML :: Node -> Parser Dep #

newtype Flags Source #

Constructors

Flags (Map PkgName (Map FlagName Bool)) 
Instances
Show Flags Source # 
Instance details

Defined in StackageToHackage.Stackage

Methods

showsPrec :: Int -> Flags -> ShowS #

show :: Flags -> String #

showList :: [Flags] -> ShowS #

Semigroup Flags Source # 
Instance details

Defined in StackageToHackage.Stackage

Methods

(<>) :: Flags -> Flags -> Flags #

sconcat :: NonEmpty Flags -> Flags #

stimes :: Integral b => b -> Flags -> Flags #

FromYAML Flags Source # 
Instance details

Defined in StackageToHackage.Stackage

Methods

parseYAML :: Node -> Parser Flags #

data NewResolver Source #

Constructors

NewResolver 

Fields

data NewDep Source #

Constructors

NewDep PkgId 
Instances
Show NewDep Source # 
Instance details

Defined in StackageToHackage.Stackage

FromYAML NewDep Source # 
Instance details

Defined in StackageToHackage.Stackage

newtype PkgId Source #

Constructors

PkgId 
Instances
Show PkgId Source # 
Instance details

Defined in StackageToHackage.Stackage

Methods

showsPrec :: Int -> PkgId -> ShowS #

show :: PkgId -> String #

showList :: [PkgId] -> ShowS #

FromYAML PkgId Source # 
Instance details

Defined in StackageToHackage.Stackage

Methods

parseYAML :: Node -> Parser PkgId #