chuchu 0.1.1 → 0.1.2
raw patch · 4 files changed
+5/−4 lines, 4 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Test.Chuchu.Types: instance IsString (ChuchuParser a)
+ Test.Chuchu.Types: instance a ~ () => IsString (ChuchuParser a)
Files
- Test/Chuchu/Types.hs +2/−3
- chuchu.cabal +1/−1
- tests/data/environment.feature +1/−0
- tests/environment.hs +1/−0
Test/Chuchu/Types.hs view
@@ -26,9 +26,8 @@ newtype ChuchuParser a = ChuchuParser (Parser a) deriving (Functor, Applicative, Monad) -instance IsString (ChuchuParser a) where- fromString s = ChuchuParser (string s >> return err)- where err = error "fromString: ChuchuParser strings do not return any useful value."+instance (a ~ ()) => IsString (ChuchuParser a) where+ fromString s = ChuchuParser (string s >> return ()) -- | The most command use case where the return value of the Monad is ignored.
chuchu.cabal view
@@ -1,5 +1,5 @@ name: chuchu-version: 0.1.1+version: 0.1.2 cabal-version: >= 1.8 build-type: Simple license: OtherLicense
tests/data/environment.feature view
@@ -17,6 +17,7 @@ Programmers must be able to write and read environment variables Scenario: Write then read+ Given that I start the test When I set the variable as "environment" into the environment # Comment! =) Then the variable should have "environment" on its content
tests/environment.hs view
@@ -29,6 +29,7 @@ defs :: Chuchu IO defs = do+ Given "that I start the test" $ \() -> return () When ("I set the " *> wildcard " as " *> text <* " into the environment") $ \x -> setEnv "environment" x True Then ("the " *> wildcard " should have " *> text <* " on its content")