FilePather 0.1.2 → 0.1.3
raw patch · 3 files changed
+29/−1 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ System.FilePath.FilePather.LiftI: class LiftI f a | f -> a
+ System.FilePath.FilePather.LiftI: instance LiftI FilterPredicateT Bool
+ System.FilePath.FilePather.LiftI: instance LiftI RecursePredicateT Bool
+ System.FilePath.FilePather.LiftI: liftI :: (LiftI f a, Monad g) => g a -> f g
Files
- FilePather.cabal +2/−1
- src/System/FilePath/FilePather.hs +1/−0
- src/System/FilePath/FilePather/LiftI.hs +26/−0
FilePather.cabal view
@@ -1,5 +1,5 @@ Name: FilePather-Version: 0.1.2+Version: 0.1.3 Author: Tony Morris <ʇǝu˙sıɹɹoɯʇ@ןןǝʞsɐɥ> Maintainer: Tony Morris <ʇǝu˙sıɹɹoɯʇ@ןןǝʞsɐɥ> Copyright: Tony Morris@@ -49,6 +49,7 @@ System.FilePath.FilePather.FilterPredicate System.FilePath.FilePather.FilePathPredicate System.FilePath.FilePather.Find+ System.FilePath.FilePather.LiftI Source-Repository head type: git
src/System/FilePath/FilePather.hs view
@@ -5,4 +5,5 @@ import System.FilePath.FilePather.FilterPredicate as X import System.FilePath.FilePather.FilePathPredicate as X import System.FilePath.FilePather.Find as X+import System.FilePath.FilePather.LiftI as X
+ src/System/FilePath/FilePather/LiftI.hs view
@@ -0,0 +1,26 @@+{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies #-}++module System.FilePath.FilePather.LiftI+(+ LiftI(..)+) where++import System.FilePath.FilePather.RecursePredicate+import System.FilePath.FilePather.FilterPredicate++-- | A type-class for lifting a value.+-- This type-class probably belongs elsewhere (pointers appreciated!).+class LiftI f a | f -> a where+ liftI ::+ Monad g =>+ g a+ -> f g++instance LiftI RecursePredicateT Bool where+ liftI = + recursePredicateT . const++instance LiftI FilterPredicateT Bool where+ liftI = + filterPredicateT . const . const+