diff options
Diffstat (limited to 'src/GF/Infra')
| -rw-r--r-- | src/GF/Infra/Print.hs | 3 | ||||
| -rw-r--r-- | src/GF/Infra/PrintClass.hs | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/GF/Infra/Print.hs b/src/GF/Infra/Print.hs index c4a310c29..17f2c2188 100644 --- a/src/GF/Infra/Print.hs +++ b/src/GF/Infra/Print.hs @@ -121,4 +121,7 @@ instance Print CFFun where instance Print Exp where prt = P.printTree +instance Print a => Print (Err a) where + prt (Ok a) = prt a + prt (Bad str) = str diff --git a/src/GF/Infra/PrintClass.hs b/src/GF/Infra/PrintClass.hs index 93d7366b6..5e94984a6 100644 --- a/src/GF/Infra/PrintClass.hs +++ b/src/GF/Infra/PrintClass.hs @@ -1,7 +1,6 @@ module GF.Infra.PrintClass where import Data.List (intersperse) -import GF.Data.Operations (Err(..)) class Print a where prt :: a -> String @@ -50,7 +49,3 @@ instance Print Integer where instance Print a => Print (Maybe a) where prt (Just a) = prt a prt Nothing = "Nothing" - -instance Print a => Print (Err a) where - prt (Ok a) = prt a - prt (Bad str) = str |
