goatee 0.1.0 → 0.1.1
raw patch · 3 files changed
+5/−5 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Game.Goatee.Sgf.Renderer: type Render = WriterT String (Except String)
+ Game.Goatee.Sgf.Renderer: type Render = WriterT String (Either String)
Files
- goatee.cabal +1/−1
- src/Game/Goatee/Sgf/Property/Renderer.hs +1/−1
- src/Game/Goatee/Sgf/Renderer.hs +3/−3
goatee.cabal view
@@ -1,5 +1,5 @@ name: goatee-version: 0.1.0+version: 0.1.1 synopsis: A monadic take on a 2,500-year-old board game - library. category: Game license: AGPL-3
src/Game/Goatee/Sgf/Property/Renderer.hs view
@@ -60,7 +60,7 @@ ) where import Control.Monad (forM_, when)-#if MIN_VERSION_base(4,6,0)+#if MIN_VERSION_mtl(2,2,1) import Control.Monad.Except (throwError) #else import Control.Monad.Error (throwError)
src/Game/Goatee/Sgf/Renderer.hs view
@@ -24,7 +24,7 @@ rendererOf, ) where -#if MIN_VERSION_base(4,6,0)+#if MIN_VERSION_mtl(2,2,1) import Control.Monad.Except (Except, catchError, runExcept, throwError) #else import Control.Monad.Error (catchError, throwError)@@ -32,7 +32,7 @@ import Control.Monad.Writer (WriterT, execWriterT) -- | A monad for accumulating string output with the possibility of failure.-#if MIN_VERSION_base(4,6,0)+#if MIN_VERSION_mtl(2,2,1) type Render = WriterT String (Except String) #else type Render = WriterT String (Either String)@@ -41,7 +41,7 @@ -- | Returns either the rendered result on the right, or a message describing a -- failure on the left. runRender :: Render a -> Either String String-#if MIN_VERSION_base(4,6,0)+#if MIN_VERSION_mtl(2,2,1) runRender = runExcept . execWriterT #else runRender = execWriterT