mvc 1.0.0 → 1.0.1
raw patch · 3 files changed
+11/−8 lines, 3 filesdep ~contravariantdep ~mmorphdep ~transformers
Dependency ranges changed: contravariant, mmorph, transformers
Files
- LICENSE +1/−1
- mvc.cabal +5/−5
- src/MVC.hs +5/−2
LICENSE view
@@ -1,4 +1,4 @@-Copyright (c) 2013 Gabriel Gonzalez+Copyright (c) 2014 Gabriel Gonzalez All rights reserved. Redistribution and use in source and binary forms, with or without modification,
mvc.cabal view
@@ -1,10 +1,10 @@ Name: mvc-Version: 1.0.0+Version: 1.0.1 Cabal-Version: >=1.8.0.2 Build-Type: Simple License: BSD3 License-File: LICENSE-Copyright: 2013 Gabriel Gonzalez+Copyright: 2014 Gabriel Gonzalez Author: Gabriel Gonzalez Maintainer: Gabriel439@gmail.com Bug-Reports: https://github.com/Gabriel439/Haskell-MVC-Library/issues@@ -28,11 +28,11 @@ Build-Depends: base >= 4 && < 5 , async >= 2.0.0 && < 2.1,- contravariant < 0.5,- mmorph >= 1.0.0 && < 1.1,+ contravariant < 0.7,+ mmorph >= 1.0.2 && < 1.1, pipes >= 4.0.0 && < 4.2, pipes-concurrency >= 2.0.1 && < 2.1,- transformers >= 0.2.0.0 && < 0.4 + transformers >= 0.2.0.0 && < 0.5 Exposed-Modules: MVC, MVC.Prelude
src/MVC.hs view
@@ -36,11 +36,11 @@ * A `View` that writes lines to standard output - * A pure `Model`, which forwards lines until the user inputs @"quit"@+ * A pure `Model`, which forwards lines until the user inputs \"quit\" 'runMVC' connects them into a complete program, which outputs a @()@ every second and also echoes standard input to standard output until the user- enters @"quit"@:+ enters \"quit\": >>> main ()@@ -405,6 +405,9 @@ instance Monoid r => Monoid (Managed r) where mempty = pure mempty mappend = liftA2 mappend++instance MonadIO Managed where+ liftIO m = Managed (m >>=) -- | Created a `Managed` resource managed :: (forall x . (r -> IO x) -> IO x) -> Managed r