Skip to content

Commit

Permalink
Added either to Data.MemoCombinators.Class & version bump.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Palmer committed Dec 14, 2013
1 parent ddbfa78 commit e541633
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Data/MemoCombinators/Class.hs
Expand Up @@ -74,6 +74,8 @@ instance (MemoTable a, MemoTable b, MemoTable c, MemoTable d, MemoTable e, MemoT

instance (MemoTable a) => MemoTable [a] where table = Memo.list table
instance (MemoTable a) => MemoTable (Maybe a) where table = Memo.maybe table
instance (MemoTable a, MemoTable b) => MemoTable (Either a b) where
table = Memo.either table table
instance (Integral a, MemoTable a) => MemoTable (Ratio a) where
table = Memo.wrap (uncurry (%)) (numerator &&& denominator) table

Expand Down
2 changes: 1 addition & 1 deletion data-memocombinators.cabal
@@ -1,7 +1,7 @@
Name: data-memocombinators
Description:
Combinators for building memo tables.
Version: 0.5.0
Version: 0.5.1
Stability: experimental
Synopsis: Combinators for building memo tables.
License: BSD3
Expand Down

0 comments on commit e541633

Please sign in to comment.