packages feed

nix-derivation 1.1.2 → 1.1.3

raw patch · 3 files changed

+37/−22 lines, 3 filesdep ~QuickCheckdep ~containersdep ~deepseqPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: QuickCheck, containers, deepseq, filepath, text

API changes (from Hackage documentation)

Files

LICENSE view
@@ -1,4 +1,4 @@-Copyright (c) 2017 Gabriel Gonzalez+Copyright (c) 2017 Gabriella Gonzalez All rights reserved.  Redistribution and use in source and binary forms, with or without modification,@@ -8,7 +8,7 @@     * Redistributions in binary form must reproduce the above copyright notice,       this list of conditions and the following disclaimer in the documentation       and/or other materials provided with the distribution.-    * Neither the name of Gabriel Gonzalez nor the names of other contributors+    * Neither the name of Gabriella Gonzalez nor the names of other contributors       may be used to endorse or promote products derived from this software       without specific prior written permission. 
nix-derivation.cabal view
@@ -1,14 +1,14 @@ Name: nix-derivation-Version: 1.1.2+Version: 1.1.3 Cabal-Version: >=1.10 Build-Type: Simple Tested-With: GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.2, GHC == 8.8.3 License: BSD3 License-File: LICENSE-Copyright: 2017 Gabriel Gonzalez-Author: Gabriel Gonzalez-Maintainer: Gabriel439@gmail.com-Bug-Reports: https://github.com/Gabriel439/Haskell-Nix-Derivation-Library/issues+Copyright: 2017 Gabriella Gonzalez+Author: Gabriella Gonzalez+Maintainer: GenuineGabriella@gmail.com+Bug-Reports: https://github.com/Gabriella439/Haskell-Nix-Derivation-Library/issues Synopsis: Parse and render *.drv files Description:     Use this package to parse and render Nix derivation files (i.e. *.drv files)@@ -22,7 +22,7 @@     tests/example1.drv Source-Repository head     Type: git-    Location: https://github.com/Gabriel439/Haskell-Nix-Derivation-Library+    Location: https://github.com/Gabriella439/Haskell-Nix-Derivation-Library  Library     Default-Language: Haskell2010@@ -30,10 +30,10 @@     Build-Depends:         base            >= 4.6.0.0  && < 5   ,         attoparsec      >= 0.12.0.0 && < 0.15,-        containers                     < 0.7 ,-        deepseq         >= 1.4.0.0  && < 1.5 ,-        text            >= 0.8.0.0  && < 1.3 ,-        vector                         < 0.13,+        containers                     < 0.8 ,+        deepseq         >= 1.4.0.0  && < 1.6 ,+        text            >= 0.8.0.0  && < 2.2 ,+        vector                         < 0.14,         filepath                       < 1.5     Exposed-Modules:         Nix.Derivation@@ -50,7 +50,7 @@         base           >= 4.6.0.0  && < 5   ,         attoparsec     >= 0.12.0.0 && < 0.15,         pretty-show    >= 1.6.11   && < 1.11,-        text           >= 0.8.0.0  && < 1.3 ,+        text                                ,         nix-derivation     GHC-Options: -Wall     Main-Is: Main.hs@@ -65,7 +65,7 @@         base           >= 4.6.0.0  && < 5   ,         attoparsec     >= 0.12.0.0 && < 0.15,         nix-derivation                      ,-        text           >= 0.8.0.0  && < 1.3+        text  Test-Suite property     Default-Language: Haskell2010@@ -78,8 +78,8 @@         attoparsec      >= 0.12.0.0 && < 0.15,         nix-derivation                       ,         QuickCheck                     < 2.15,-        text            >= 0.8.0.0  && < 1.3 ,-        vector                         < 0.13,+        text                                 ,+        vector                         < 0.14,         filepath                       < 1.5  Benchmark benchmark@@ -92,6 +92,6 @@     Build-Depends:         base            >= 4.6.0.0  && < 5   ,         attoparsec      >= 0.12.0.0 && < 0.15,-        criterion       >= 1.1.4.0  && < 1.6 ,+        criterion       >= 1.1.4.0  && < 1.7 ,         nix-derivation                       ,-        text            >= 0.8.0.0  && < 1.3+        text
src/Nix/Derivation/Types.hs view
@@ -1,7 +1,7 @@-{-# LANGUAGE DeriveGeneric  #-}-{-# LANGUAGE DeriveFunctor  #-}-{-# LANGUAGE FlexibleInstances  #-}-{-# LANGUAGE KindSignatures  #-}+{-# LANGUAGE DeriveGeneric     #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE KindSignatures    #-}+{-# LANGUAGE RecordWildCards   #-}  -- | Shared types @@ -12,6 +12,7 @@     ) where  import Control.DeepSeq (NFData)+import Data.Bifunctor (Bifunctor(bimap)) import Data.Map (Map) import Data.Set (Set) import Data.Vector (Vector)@@ -50,3 +51,17 @@     } deriving (Eq, Generic, Ord, Show)  instance (NFData a, NFData b) => NFData (DerivationOutput a b)++instance Functor (DerivationOutput fp) where+  fmap f DerivationOutput{..} = DerivationOutput+    { path = path+    , hashAlgo = f hashAlgo+    , hash = f hash+    }++instance Bifunctor DerivationOutput where+  bimap f g DerivationOutput{..} = DerivationOutput+    { path = f path+    , hashAlgo = g hashAlgo+    , hash = g hash+    }