-- | -- Module : Foundation.Primitive -- License : BSD-style -- Maintainer : Vincent Hanquez <vincent@snarc.org> -- Stability : experimental -- Portability : portable -- -- Different collections (list, vector, string, ..) unified under 1 API. -- an API to rules them all, and in the darkness bind them. -- {-# LANGUAGE DefaultSignatures #-} {-# LANGUAGE FlexibleInstances #-} module Foundation.Primitive ( PrimType(..) , PrimMonad(..) -- * endianess , ByteSwap , LE(..), toLE, fromLE , BE(..), toBE, fromBE -- * Integral convertion , IntegralUpsize(..) , IntegralDownsize(..) , IntegralCast(..) -- * Evaluation , NormalForm(..) , force , deepseq ) where import Foundation.Primitive.Types import Foundation.Primitive.Monad import Foundation.Primitive.Endianness import Foundation.Primitive.IntegralConv import Foundation.Primitive.NormalForm