summaryrefslogtreecommitdiff
path: root/old-examples/gfcc/compiler/ErrM.hs
diff options
context:
space:
mode:
Diffstat (limited to 'old-examples/gfcc/compiler/ErrM.hs')
-rw-r--r--old-examples/gfcc/compiler/ErrM.hs15
1 files changed, 0 insertions, 15 deletions
diff --git a/old-examples/gfcc/compiler/ErrM.hs b/old-examples/gfcc/compiler/ErrM.hs
deleted file mode 100644
index 85c311a88..000000000
--- a/old-examples/gfcc/compiler/ErrM.hs
+++ /dev/null
@@ -1,15 +0,0 @@
--- BNF Converter: Error Monad
--- Copyright (C) 2004 Author: Aarne Ranta
-
--- This file comes with NO WARRANTY and may be used FOR ANY PURPOSE.
-module ErrM where
-
--- the Error monad: like Maybe type with error msgs
-
-data Err a = Ok a | Bad String
- deriving (Read, Show, Eq)
-
-instance Monad Err where
- return = Ok
- Ok a >>= f = f a
- Bad s >>= f = Bad s