aboutsummaryrefslogtreecommitdiff
path: root/src/Operators.hs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-10-23 13:33:31 +0100
committerAkshay <[email protected]>2020-10-23 13:33:31 +0100
commit494078074e5f620f11f72e48d0fc44cff73faaf2 (patch)
tree25aea03ceaae5fc3010e1894ae74d6eee0259cb5 /src/Operators.hs
parentf68c7f7a140127320f9dadc57a3d2a485b86d3df (diff)
refactor internal datatypes to Base
- avoids cyclic module dependencies - cleaner exports to Main module
Diffstat (limited to 'src/Operators.hs')
-rw-r--r--src/Operators.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Operators.hs b/src/Operators.hs
index fa39e23..bab888d 100644
--- a/src/Operators.hs
+++ b/src/Operators.hs
@@ -1,8 +1,8 @@
1module Operators (primitives) where 1module Operators (primitives) where
2 2
3import Base
3import Control.Monad.Except 4import Control.Monad.Except
4import Error.Base (LispError (..), LispResult (..)) 5import Error.Base (LispError (..), LispResult (..))
5import Parser
6 6
7primitives :: [(String, [Expr] -> LispResult Expr)] 7primitives :: [(String, [Expr] -> LispResult Expr)]
8primitives = map (\(n, f) -> (n, f n)) 8primitives = map (\(n, f) -> (n, f n))