X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=GHC%2FExts.hs;h=651396a686bd7a6d11ec61fd938e76349cf62a5c;hb=d71aee821935e29a3569bc4b401f695536209c85;hp=3ba88ca180acf55fa72d6fee5c75e1fa79530dc0;hpb=1e1907fb42b74de4feb5ac8af10846db31e56edb;p=haskell-directory.git diff --git a/GHC/Exts.hs b/GHC/Exts.hs index 3ba88ca..651396a 100644 --- a/GHC/Exts.hs +++ b/GHC/Exts.hs @@ -1,37 +1,49 @@ ----------------------------------------------------------------------------- --- +-- | -- Module : GHC.Exts --- Copyright : (c) The University of Glasgow 2001 --- License : BSD-style (see the file libraries/core/LICENSE) +-- Copyright : (c) The University of Glasgow 2002 +-- License : see libraries/base/LICENSE -- --- Maintainer : libraries@haskell.org --- Stability : experimental --- Portability : non-portable --- --- $Id: Exts.hs,v 1.1 2002/01/02 14:40:10 simonmar Exp $ +-- Maintainer : cvs-ghc@haskell.org +-- Stability : internal +-- Portability : non-portable (GHC Extensions) -- --- GHC Extensions: this is the Approved Way to get at GHC-specific stuff. +-- GHC Extensions: this is the Approved Way to get at GHC-specific extensions. -- ----------------------------------------------------------------------------- module GHC.Exts ( - -- the representation of some basic types: + -- * Representations of some basic types Int(..),Word(..),Float(..),Double(..),Integer(..),Char(..), + Ptr(..), FunPtr(..), + + -- * Primitive operations + module GHC.Prim, + shiftL#, shiftRL#, iShiftL#, iShiftRA#, iShiftRL#, - -- Fusion + -- * Fusion build, augment, - -- shifty wrappers from GHC.Base - shiftL#, shiftRL#, iShiftL#, iShiftRA#, iShiftRL#, + -- * Linear implicit parameter support + Splittable(..), + + -- * Debugging + breakpoint, - -- and finally, all the unboxed primops of GHC! - module GHC.Prim + -- * Ids with special behaviour + lazy, inline, ) where -import {-# SOURCE #-} GHC.Prim +import Prelude + +import GHC.Prim import GHC.Base import GHC.Word import GHC.Num import GHC.Float +import GHC.Ptr + +class Splittable t where + split :: t -> (t,t)