Skip to content

Commit

Permalink
Further speedup - currying was broken; bump to 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jkff committed Jan 19, 2012
1 parent 84bdafd commit 4a9e11a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Data/Time/Parse.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ class Strptime_ a where
strptime_ :: a -> a -> Maybe (LocalTime, Int)

instance Strptime_ [Char] where
strptime_ f s = strptime_ (S.pack f) (S.pack s)
strptime_ f = let pf = S.pack f in \s -> strptime_ pf (S.pack s)

instance Strptime_ L.ByteString where
strptime_ f s = strptime_ (S.concat . L.toChunks $ f) (S.concat . L.toChunks $ s)
strptime_ f = let pf = S.concat (L.toChunks f) in \s -> strptime_ pf (S.concat . L.toChunks $ s)

instance Strptime_ S.ByteString where
strptime_ f = U.unsafePerformIO $ do
Expand Down
2 changes: 1 addition & 1 deletion strptime.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: strptime
Category: System, Data, Parsing
Version: 1.0.4
Version: 1.0.5
Cabal-version: >= 1.2
Build-type: Simple
Copyright: Eugene Kirpichov
Expand Down

0 comments on commit 4a9e11a

Please sign in to comment.