Changeset 5890

Show
Ignore:
Timestamp:
07/29/05 17:19:17 (3 years ago)
Author:
bsmith
svk:copy_cache_prev:
7758
Message:

Added export lists to lots of haskell files.

Location:
src
Files:
10 modified

Legend:

Unmodified
Added
Removed
  • src/Emit/Common.hs

    r4889 r5890  
    11{-# OPTIONS_GHC -fglasgow-exts -fallow-overlapping-instances -fno-warn-orphans -cpp #-} 
    22 
    3 module Emit.Common where 
     3module Emit.Common ( 
     4    Emit(..), 
     5    nested, eqSep, commaSep, 
     6) where 
    47import Text.PrettyPrint 
    58 
  • src/Emit/PIR.hs

    r5413 r5890  
    11{-# OPTIONS_GHC -fglasgow-exts -fallow-overlapping-instances -fno-warn-orphans -funbox-strict-fields -cpp #-} 
    22 
    3 module Emit.PIR where 
     3module Emit.PIR ( 
     4    module Emit.PIR, 
     5    module Emit.Common, 
     6) where 
    47import Data.Char 
    58import Data.List 
  • src/Pugs/CodeGen/PIR.hs

    r5646 r5890  
    1818import Pugs.AST 
    1919import Pugs.AST.Internals 
     20import Pugs.Types 
    2021import Pugs.Eval.Var 
    21 import Emit.Common 
    2222import Emit.PIR 
    2323import Pugs.Pretty 
     
    2929type CodeGen a = WriterT [Stmt] (ReaderT TEnv IO) a 
    3030type CodeGenMonad = WriterT [Stmt] (ReaderT TEnv IO) 
     31 
     32ratToNum :: VRat -> VNum 
     33ratToNum x = (fromIntegral $ numerator x) / (fromIntegral $ denominator x) 
    3134 
    3235{-| Currently only 'PIL' → 'PIR' -} 
  • src/Pugs/Compile.hs

    r5853 r5890  
    1111-} 
    1212 
    13 module Pugs.Compile where 
     13module Pugs.Compile ( 
     14    PIL(..), 
     15    Compile(..), 
     16    TEnv(..), initTEnv, 
     17    TCxt(..), tcVoid, tcLValue, 
     18    TParam(..), 
     19    EnterClass(..), 
     20    die, varText, 
     21) where 
    1422import Pugs.AST 
    1523import Pugs.Internals 
  • src/Pugs/Compile/Haskell.hs

    r3906 r5890  
    11{-# OPTIONS_GHC -fglasgow-exts -fth -cpp #-} 
    22 
    3 module Pugs.Compile.Haskell where 
     3module Pugs.Compile.Haskell ( 
     4    genGHC, 
     5) where 
    46 
    57#undef PUGS_HAVE_TH 
  • src/Pugs/Junc.hs

    r5592 r5890  
    1010-} 
    1111 
    12 module Pugs.Junc where 
     12module Pugs.Junc ( 
     13    ApplyArg(..), 
     14    opJunc, opJuncNone, opJuncAll, opJuncAny, opJuncOne, 
     15    juncApply, 
     16) where 
    1317import Pugs.Internals 
    1418import Pugs.AST 
  • src/Pugs/Monads.hs

    r5592 r5890  
    1313-} 
    1414 
    15 module Pugs.Monads where 
     15module Pugs.Monads ( 
     16    enterLex, enterContext, enterEvalContext, enterPackage, enterCaller, 
     17    enterGiven, enterWhen, enterWhile, genSymPrim, genSymCC, 
     18    enterBlock, enterSub, 
     19    evalVal, tempVar, 
     20 
     21    module Control.Monad.RWS 
     22) where 
    1623import Pugs.Internals 
    1724import Pugs.AST 
    1825import Pugs.Context 
    1926import Pugs.Types 
     27import Control.Monad.RWS 
    2028 
    2129{-| 
  • src/Pugs/Pretty.hs

    r4934 r5890  
    1313-} 
    1414 
    15 module Pugs.Pretty where 
     15module Pugs.Pretty ( 
     16    Pretty, pretty, 
     17) where 
    1618import Pugs.Internals 
    1719import Pugs.Types 
     
    143145quoted x = [x] 
    144146 
    145 ratToNum :: VRat -> VNum 
    146 ratToNum x = (fromIntegral $ numerator x) / (fromIntegral $ denominator x) 
    147  
    148147doubleBraces :: Doc -> Doc 
    149148doubleBraces x = vcat [ (lbrace <> lbrace), nest defaultIndent x, rbrace <> rbrace] 
     
    152151joinList x y = cat $ punctuate x y 
    153152 
    154 commasep :: [Doc] -> Doc 
    155 commasep x = cat $ (punctuate (char ',')) x 
    156  
    157153pretty :: Pretty a => a -> String 
    158154pretty a = render $ format a  
  • src/Pugs/Prim/Code.hs

    r5173 r5890  
    11{-# OPTIONS_GHC -fglasgow-exts #-} 
    2 module Pugs.Prim.Code where 
     2module Pugs.Prim.Code ( 
     3    op1CodeAssoc, op1CodeName, op1CodeArity, op1CodeBody, op1CodePos, 
     4) where 
    35import Pugs.AST 
    46import Pugs.Internals 
  • src/Pugs/Shell.hs

    r3701 r5890  
    1111-} 
    1212 
    13 module Pugs.Shell where 
     13module Pugs.Shell ( 
     14    Command(..), 
     15    RunOptions(..), 
     16    initializeShell, 
     17    getCommand, 
     18) where 
    1419import Pugs.Internals 
    1520