Cum scriem ca un modul exporta tipuri si constructori de tip ?
From HaskellWiki
(Difference between revisions)
| Line 3: | Line 3: | ||
Iata un exemplu, extras din proiectul limbajului pseudocod [[Rodin]] | Iata un exemplu, extras din proiectul limbajului pseudocod [[Rodin]] | ||
---- | ---- | ||
| + | |||
{-# OPTIONS_GHC -fglasgow-exts #-} | {-# OPTIONS_GHC -fglasgow-exts #-} | ||
| + | |||
module ModRun ( runpcommand, | module ModRun ( runpcommand, | ||
Value, | Value, | ||
Current revision
Iata un exemplu, extras din proiectul limbajului pseudocod Rodin
{-# OPTIONS_GHC -fglasgow-exts #-}
module ModRun ( runpcommand,
Value,
Name,
EvalIO,run,
) where
import ModEnvironment ....
Observati ca sunt exportate anumite nume de tipuri, usor de recunoscut dupa majuscula initiala.
Pentru detalii consultati: The Haskell Reference and Report .....
Pagina in dezvoltare...
