----------------------------------------------------------------------------- -- | -- Module : Emit -- Copyright : Copyright (c) 2007 Igor Boehm - Bytelabs.org. All rights reserved. -- License : BSD-style (see the file LICENSE) -- Author : Igor Boehm -- -- Every backend should know how amd where to emit itself. ----------------------------------------------------------------------------- module Gen.Emit ( -- * Types Emit(..), ) where {- unqualified imports -} {- qualified imports -} ----------------------------------------------------------------------------- {- | Whatever is an instance of Emit must obviously be able to emit itself and to tell where it wants to emit itself. -} class Emit a where emit :: a -> String emitTo :: a -> FilePath -----------------------------------------------------------------------------