Difference between revisions of "Cum scriem ca un modul exporta tipuri si constructori de tip ?"

From HaskellWiki
Jump to navigation Jump to search
 
 
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,

Latest revision as of 20:37, 7 December 2009


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...