Cum scriem ca un modul exporta tipuri si constructori de tip ?
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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...