stack2cabal-1.0.12: Convert stack projects to cabal.project + cabal.project.freeze

Safe HaskellNone
LanguageHaskell2010

StackageToHackage.Hackage

Description

A simplistic model of cabal multi-package files and convertors from Stackage.

Synopsis

Documentation

newtype Freeze Source #

Constructors

Freeze [Constraint] 
Instances
Show Freeze Source # 
Instance details

Defined in StackageToHackage.Hackage.Types

data Project Source #

Constructors

Project 
Instances
Show Project Source # 
Instance details

Defined in StackageToHackage.Hackage.Types

printProject Source #

Arguments

:: Bool

whether to pin GHC

-> Maybe Elapsed

hackage index date to pin

-> Project 
-> Maybe Text 
-> IO Text 

stackToCabal Source #

Arguments

:: Bool

whether to inspect remotes

-> Bool

whether to run hpack

-> FilePath 
-> Stack 
-> IO (Project, Freeze) 

Converts a stack.yaml (and list of local packages) to cabal.project and cabal.project.freeze.