mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-07 02:02:51 -06:00
remove some traces that I left by incident
This commit is contained in:
@@ -8,7 +8,6 @@ import Data.Binary.Get
|
|||||||
import qualified Data.ByteString as BS
|
import qualified Data.ByteString as BS
|
||||||
import qualified Data.Map as Map
|
import qualified Data.Map as Map
|
||||||
import Control.Monad
|
import Control.Monad
|
||||||
import Debug.Trace
|
|
||||||
|
|
||||||
pgfMajorVersion, pgfMinorVersion :: Word16
|
pgfMajorVersion, pgfMinorVersion :: Word16
|
||||||
(pgfMajorVersion, pgfMinorVersion) = (1,0)
|
(pgfMajorVersion, pgfMinorVersion) = (1,0)
|
||||||
@@ -69,12 +68,11 @@ instance Binary Concr where
|
|||||||
})
|
})
|
||||||
|
|
||||||
instance Binary Tokn where
|
instance Binary Tokn where
|
||||||
put (KS s) = putWord8 0 >> trace (show s) (put s)
|
put (KS s) = putWord8 0 >> put s
|
||||||
put (KP d vs) = putWord8 1 >> put (d,vs)
|
put (KP d vs) = putWord8 1 >> put (d,vs)
|
||||||
get = do tag <- getWord8
|
get = do tag <- getWord8
|
||||||
case tag of
|
case tag of
|
||||||
0 -> do s <- get
|
0 -> liftM KS get
|
||||||
trace (show s) $ return (KS s)
|
|
||||||
1 -> liftM2 KP get get
|
1 -> liftM2 KP get get
|
||||||
|
|
||||||
instance Binary Alternative where
|
instance Binary Alternative where
|
||||||
|
|||||||
Reference in New Issue
Block a user