Skip to content

Commit

Permalink
Merge pull request #5 from purescript/bump
Browse files Browse the repository at this point in the history
Prepare for 2.0 release
  • Loading branch information
garyb authored Sep 30, 2016
2 parents f0ae0c3 + 498ab82 commit 2f3be86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"package.json"
],
"dependencies": {
"purescript-prelude": "^1.0.0"
"purescript-prelude": "^2.1.0"
}
}
3 changes: 1 addition & 2 deletions src/Data/Functor/Invariant.purs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module Data.Functor.Invariant where

import Data.Function (const, (<<<))
import Data.Functor (class Functor, map)

-- | A type of functor that can be used to adapt the type of a wrapped function
Expand All @@ -25,4 +24,4 @@ instance invariantArray :: Invariant Array where
-- | used as the `imap` implementation for any types that has an existing
-- | `Functor` instance.
imapF :: forall f a b. Functor f => (a -> b) -> (b -> a) -> f a -> f b
imapF = const <<< map
imapF f _ = map f

0 comments on commit 2f3be86

Please sign in to comment.