packages feed

calculator 0.3.0.0 → 0.3.0.1

raw patch · 2 files changed

+25/−1 lines, 2 files

Files

calculator.cabal view
@@ -1,5 +1,5 @@ name:                calculator-version:             0.3.0.0+version:             0.3.0.1 synopsis:            A calculator repl. description:         A calculator repl that processes mathematical expressions.                      Does basic arithmetic, and provides pre-defined basic mathematical functions.@@ -40,6 +40,7 @@                      , Calculator.Prim.Expr                      , Calculator.Prim.Function                      , Calculator.Prim.Statement+                     , Calculator.Prim.Result                      , Calculator.Color   -- other-extensions:       build-depends:       base >=4.7 && <4.8@@ -74,6 +75,8 @@                      , Calculator.Prim.Expr                      , Calculator.Prim.Function                      , Calculator.Prim.Statement+                     , Calculator.Prim.Result+                     , Calculator.Color                      , Model.Arithmetic   hs-source-dirs:      tests/ src/   build-depends:       QuickCheck >= 2.7.6 && <2.7.7
+ src/Calculator/Prim/Result.hs view
@@ -0,0 +1,21 @@+{-# LANGUAGE CPP #-}++module Calculator.Prim.Result+    ( Result (..)+    ) where++--------------------------------------------------------------------------------++import           Calculator.Prim.Bindings (Bindings)++--------------------------------------------------------------------------------++data Result = NewBindings Bindings+            | Text String+            | Error String+            | Value Double+#ifdef PLOT+            | Action (IO ())+#endif++--------------------------------------------------------------------------------