hist-pl-lexicon-0.3.0: tools/hist-pl-show.hs
import System.Environment (getArgs)
import qualified Data.Text.Lazy.IO as L
import NLP.HistPL.LMF (showLMF)
import qualified NLP.HistPL as H
main = do
[binPath] <- getArgs
H.load binPath >>= \x -> case x of
Nothing -> error "Not a dictionary"
Just pl -> L.putStr (showLMF $ map H.lexEntry pl)