duet 0.0.1 → 0.0.2
raw patch · 3 files changed
+12/−11 lines, 3 filesdep ~base
Dependency ranges changed: base
Files
- README.md +0/−4
- app/Main.hs +6/−1
- duet.cabal +6/−6
README.md view
@@ -9,13 +9,9 @@ ``` haskell $ duet run demo.hs-[1] (\x -> x + 5) (2 * 3)-[2] (2 * 3) + 5-[3] 6 + 5-[4] 11 ```
app/Main.hs view
@@ -23,6 +23,7 @@ { runInputFile :: FilePath , runMainIs :: String , runConcise :: Bool+ , runNumbered :: Bool , runSteps :: Int } deriving (Show) @@ -44,6 +45,7 @@ (long "main" <> metavar "NAME" <> help "The main value to run" <> value "main") <*> flag False True (long "concise" <> help "Concise view") <*>+ flag False True (long "numbered" <> help "Number outputs") <*> option auto (long "steps" <> short 'n' <> metavar "steps" <>@@ -71,7 +73,10 @@ mapM_ (\(step, expr) -> putStrLn- ("[" ++ show step ++ "]\n" ++ printExpression defaultPrint expr))+ ((if runNumbered+ then "[" ++ show step ++ "]\n"+ else "") +++ printExpression defaultPrint expr)) (zip [1 :: Integer ..] (filter
duet.cabal view
@@ -1,7 +1,7 @@ name: duet version:- 0.0.1+ 0.0.2 cabal-version: >=1.10 build-type:@@ -9,9 +9,9 @@ maintainer: chrisdone@gmail.com synopsis:- A tiny language, a subset of Haskell (with type classes) aimed at aiding teachers teach Haskell+ A tiny language, a subset of Haskell (with type classes) aimed at aiding teachers to teach Haskell description:- A tiny language, a subset of Haskell (with type classes) aimed at aiding teachers teach Haskell+ A tiny language, a subset of Haskell (with type classes) aimed at aiding teachers to teach Haskell license: BSD3 extra-source-files: README.md, LICENSE.md @@ -19,7 +19,7 @@ hs-source-dirs: src build-depends:- base >= 4.5 && < 4.7,+ base >= 4.5 && < 5, containers, mtl, exceptions,@@ -57,7 +57,7 @@ ghc-options: -Wall -O0 default-language: Haskell2010 build-depends:- base >= 4.5 && < 4.7, duet,+ base >= 4.5 && < 5, duet, containers, mtl, exceptions,@@ -76,7 +76,7 @@ ghc-options: -Wall default-language: Haskell2010 build-depends:- base >= 4.5 && < 4.7, duet,+ base >= 4.5 && < 5, duet, containers, mtl, exceptions,