ats-pkg 2.0.0.13 → 2.1.0.0
raw patch · 6 files changed
+15/−16 lines, 6 filesdep ~shake-atsdep ~shake-extPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: shake-ats, shake-ext
API changes (from Hackage documentation)
- Language.ATS.Package: Bin :: Text -> Text -> [Text] -> [Text] -> [TargetPair] -> Bool -> Bin
+ Language.ATS.Package: Bin :: Text -> Text -> [Text] -> [ForeignCabal] -> [TargetPair] -> Bool -> Bin
- Language.ATS.Package: [hsDeps] :: Bin -> [Text]
+ Language.ATS.Package: [hsDeps] :: Bin -> [ForeignCabal]
Files
- README.md +1/−1
- ats-pkg.cabal +3/−3
- src/Language/ATS/Package/Build.hs +1/−1
- src/Language/ATS/Package/Exec.hs +1/−8
- src/Language/ATS/Package/Type.hs +7/−1
- stack.yaml +2/−2
README.md view
@@ -69,7 +69,7 @@ ``` You need only specify the source file and the target; `atspkg` will parse your-ATS source files and track them (it will not track included C however).+ATS source files and track them (it will not track included C). ### Depending on a Library
ats-pkg.cabal view
@@ -1,5 +1,5 @@ name: ats-pkg-version: 2.0.0.13+version: 2.1.0.0 synopsis: Package manager for ATS description: A collection of scripts to make building ATS projects easy. homepage: https://github.com/vmchale/atspkg#readme@@ -50,8 +50,8 @@ , unix , lens , dhall- , shake-ats >= 0.3.0.4- , shake-ext >= 1.5.0.0+ , shake-ats >= 1.0.0.2+ , shake-ext >= 2.0.0.0 , composition-prelude >= 1.1.0.2 , optparse-applicative , temporary
src/Language/ATS/Package/Build.hs view
@@ -181,7 +181,7 @@ gc' (TL.unpack <$> ls) (TL.unpack s)- (TL.unpack <$> hs')+ hs' (both TL.unpack . asTuple <$> atg) (TL.unpack t)
src/Language/ATS/Package/Exec.hs view
@@ -5,12 +5,12 @@ import Control.Composition import Control.Lens hiding (argument)-import Control.Monad import Data.Bool (bool) import Data.Maybe (fromMaybe) import Data.Semigroup (Semigroup (..)) import qualified Data.Text.Lazy as TL import Data.Version hiding (Version (..))+import Development.Shake.ATS import Development.Shake.FilePath import Language.ATS.Package.Build import Language.ATS.Package.Compiler@@ -62,13 +62,6 @@ argument str (metavar "URL" <> help "URL pointing to a tarball containing the package to be installed.")--getSubdirs :: FilePath -> IO [FilePath]-getSubdirs p = do- ds <- listDirectory p- case ds of- [] -> pure []- xs -> filterM doesDirectoryExist (((p <> "/") <>) <$> xs) fetchPkg :: String -> IO () fetchPkg pkg = withSystemTempDirectory "atspkg" $ \p -> do
src/Language/ATS/Package/Type.hs view
@@ -51,10 +51,16 @@ , ats :: Text } deriving (Eq, Show, Generic, Interpret, Binary) +deriving instance Show ForeignCabal+deriving instance Eq ForeignCabal+deriving instance Generic ForeignCabal+deriving instance Interpret ForeignCabal+deriving instance Binary ForeignCabal+ data Bin = Bin { src :: Text -- ^ Source file (should end with @.dats@) , target :: Text -- ^ Binary to be built , libs :: [Text] -- ^ Libraries to link against (e.g. @[ "pthread" ]@)- , hsDeps :: [Text] -- ^ Haskell source files to link against final generated ATS+ , hsDeps :: [ForeignCabal] -- ^ Haskell @.cabal@ files associated with the final library we want to make , hs2ats :: [TargetPair] -- ^ List of sources and targets for @hs2ats@ , gc :: Bool -- ^ Whether to use the garbage collector }
stack.yaml view
@@ -3,8 +3,8 @@ packages: - '.' extra-deps:- - shake-ext-1.5.0.0- - shake-ats-0.3.0.6+ - shake-ext-2.1.0.0+ - shake-ats-1.0.0.2 - composition-prelude-1.1.0.2 - language-ats-0.1.1.11 - cli-setup-0.1.0.3