2 changed files with 15 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||||||
|
|
||||||
|
module Nand2Tetris.Error |
||||||
|
( |
||||||
|
Error(..) |
||||||
|
) where |
||||||
|
|
||||||
|
import qualified Data.Text as T |
||||||
|
import Text.Megaparsec.Error (ShowErrorComponent (showErrorComponent)) |
||||||
|
|
||||||
|
data Error = ParsingError T.Text Int |
||||||
|
deriving (Show, Eq, Ord) |
||||||
|
|
||||||
|
instance ShowErrorComponent Error where |
||||||
|
showErrorComponent = show |
||||||
Loading…
Reference in new issue