hpack 0.19.0 → 0.19.1
raw patch · 3 files changed
+14/−4 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +6/−3
- hpack.cabal +1/−1
- src/Hpack/Dependency.hs +7/−0
CHANGELOG.md view
@@ -1,14 +1,17 @@-## next (0.19.0)+## Changes in 0.19.1+ - Add `IsList` instance for `Dependencies`++## Changes in 0.19.0 - Add Paths_* module to executables (see #195, for GHC 8.2.1 compatibility) - Allow specifying dependencies as a hash (see #198) -## Change in 0.18.1+## Changes in 0.18.1 - Output generated cabal file to `stdout` when `-` is given as a command-line option (see #113) - Recognize `.chs`, `.y`, `.ly` and `.x` as Haskell modules when inferring modules for -## Change in 0.18.0+## Changes in 0.18.0 - Make `executable` a shortcut of `executables: { package-name: ... }` - Add support for `ghcjs-options` and `js-sources` (see #161) - Allow `license-file` to be a list
hpack.cabal view
@@ -3,7 +3,7 @@ -- see: https://github.com/sol/hpack name: hpack-version: 0.19.0+version: 0.19.1 synopsis: An alternative format for Haskell packages description: See README at <https://github.com/sol/hpack#readme> category: Development
src/Hpack/Dependency.hs view
@@ -1,6 +1,7 @@ {-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE TypeFamilies #-} module Hpack.Dependency ( Dependencies(..) , DependencyVersion(..)@@ -24,6 +25,7 @@ import qualified Data.Map.Lazy as Map import Data.Aeson.Types import Control.Applicative+import GHC.Exts githubBaseUrl :: String githubBaseUrl = "https://github.com/"@@ -31,6 +33,11 @@ newtype Dependencies = Dependencies { unDependencies :: Map String DependencyVersion } deriving (Eq, Show, Monoid)++instance IsList Dependencies where+ type Item Dependencies = (String, DependencyVersion)+ fromList = Dependencies . Map.fromList+ toList = Map.toList . unDependencies data DependencyVersion = AnyVersion