Cum scriem ca un modul exporta tipuri si constructori de tip ?

From HaskellWiki
Revision as of 20:37, 7 December 2009 by Ha$kell (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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...