forked from GitHub/gf-core
haskell-bind: add an export list to hide internal stuff
It also makes the generated haddock documentaiton more structured.
This commit is contained in:
@@ -3,7 +3,16 @@
|
|||||||
#include <gu/enum.h>
|
#include <gu/enum.h>
|
||||||
#include <gu/exn.h>
|
#include <gu/exn.h>
|
||||||
|
|
||||||
module CRuntimeFFI where
|
module CRuntimeFFI(-- * PGF
|
||||||
|
PGF,readPGF,abstractName,startCat,
|
||||||
|
-- * Concrete syntax
|
||||||
|
Concr,Language,{-languages,-}getConcr,parse,linearize,
|
||||||
|
-- * Trees
|
||||||
|
Expr,Tree,readExpr,showExpr,unApp,
|
||||||
|
-- * Morphology
|
||||||
|
MorphoAnalysis,lookupMorpho,fullFormLexicon,
|
||||||
|
printLexEntry
|
||||||
|
) where
|
||||||
|
|
||||||
import Prelude hiding (fromEnum)
|
import Prelude hiding (fromEnum)
|
||||||
import Control.Monad
|
import Control.Monad
|
||||||
@@ -62,7 +71,7 @@ data PGF = PGF {pgfPool :: Pool, pgf :: Ptr PgfPGF} deriving Show
|
|||||||
data Concr = Concr {concr :: (Ptr PgfConcr), concrMaster :: PGF}
|
data Concr = Concr {concr :: (Ptr PgfConcr), concrMaster :: PGF}
|
||||||
type Language = CId
|
type Language = CId
|
||||||
|
|
||||||
readPGF :: String -> IO PGF
|
readPGF :: FilePath -> IO PGF
|
||||||
readPGF filepath =
|
readPGF filepath =
|
||||||
do pool <- newPool
|
do pool <- newPool
|
||||||
pgf <- withCString filepath $ \file ->
|
pgf <- withCString filepath $ \file ->
|
||||||
|
|||||||
Reference in New Issue
Block a user