-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed interface - TTM instead of Monad m
Ignore-this: 30f319d362597da8d0f1a03e55efae5d darcs-hash:20090715114435-228f4-43595a0b748de9abd104a3103aea373d9fa4d21a.gz
- Loading branch information
eb
committed
Jul 15, 2009
1 parent
45428a7
commit 2f36338
Showing
7 changed files
with
166 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
> {-# OPTIONS_GHC -fglasgow-exts #-} | ||
|
||
> module Ivor.Errors where | ||
|
||
> import Ivor.TTCore | ||
> import Control.Monad.Error | ||
|
||
> data IError = ICantUnify (Indexed Name) (Indexed Name) | ||
> | IMessage String | ||
> deriving Show | ||
|
||
> instance Error IError where | ||
> noMsg = IMessage "Ivor Error" | ||
> strMsg s = IMessage s | ||
|
||
> type IvorM = Either IError | ||
|
||
> ifail = Left |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.