air 2011.10.19 → 2012.5.15
raw patch · 2 files changed
+2/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- Air.Data.Managed: class Managed a
+ Air.Data.Managed: class Managed a where initialize = return Nothing destroy = const (return ()) with_managed_object f = do { maybe_x <- initialize; case maybe_x of { Just x -> f x >> destroy x Nothing -> return () } }
- Air.Data.Monoid: class Monoid a
+ Air.Data.Monoid: class Monoid a where mconcat = foldr mappend mempty
- Air.Light: at :: (Show a, Integral i) => i -> [a] -> a
+ Air.Light: at :: (Show a, Integral i, Show i) => i -> [a] -> a
Files
- air.cabal +1/−1
- src/Air/Light.hs +1/−1
air.cabal view
@@ -1,5 +1,5 @@ Name: air-Version: 2011.10.19+Version: 2012.5.15 Build-type: Simple Synopsis: air Description: An alternative Haskell Prelude library.
src/Air/Light.hs view
@@ -286,7 +286,7 @@ -- New from Lab-at :: (Show a, Integral i) => i -> [a] -> a+at :: (Show a, Integral i, Show i) => i -> [a] -> a at i xs = if i P.< xs.length then xs !! i else error - show xs ++ " at " ++ show i ++ " failed"