From d6252d1c16d59ad26db0d08a531cddf39864d9db Mon Sep 17 00:00:00 2001 From: hallgren Date: Thu, 12 Jun 2014 14:43:18 +0000 Subject: PGF library: expose only PGF and PGF.Internal instead of all modules PGF exports the public, stable API. PGF.Internal exports additional things needed in the GF compiler & shell, including the nonstardard version of Data.Binary. --- src/compiler/GFC.hs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/compiler/GFC.hs') diff --git a/src/compiler/GFC.hs b/src/compiler/GFC.hs index b9ad7051a..66c0ccd91 100644 --- a/src/compiler/GFC.hs +++ b/src/compiler/GFC.hs @@ -2,10 +2,8 @@ module GFC (mainGFC, writePGF) where -- module Main where import PGF ---import PGF.CId -import PGF.Data -import PGF.Optimize -import PGF.Binary(putSplitAbs) +import PGF.Internal(PGF(..),code,funs,cats,optimizePGF,unionPGF) +import PGF.Internal(putSplitAbs) import GF.Compile import GF.Compile.Export import GF.Compile.CFGtoPGF @@ -19,8 +17,7 @@ import GF.Data.ErrM import GF.System.Directory import Data.Maybe -import Data.Binary(encode,encodeFile) -import Data.Binary.Put(runPut) +import PGF.Internal(encode,encodeFile,runPut) import qualified Data.Map as Map import qualified Data.Set as Set import qualified Data.ByteString as BSS -- cgit v1.2.3