mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
remove the dependency to GF.Data.Operations from GF Embed API
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user