packages feed

calculator-0.2.0.0: src/Calculator/Prim/Cmd.hs

module Calculator.Prim.Cmd ( Cmd (..) ) where

--------------------------------------------------------------------------------

import           Calculator.Prim.Expr (Expr)

--------------------------------------------------------------------------------

-- | Represents a command given to the calculator
data Cmd = Assign String Expr
         | Func String [String] Expr
         | Help
         | Reset
         | Display

--------------------------------------------------------------------------------