Miguel Mitrofanov schrieb:

> module Element where
> import QName
> import ...
> data Element = Element {name :: QName, attribs :: [Attr], content ::
> [Content], line :: Maybe Line}
> 
> module Attr where
> import QName
> import ...
> data Attr = Attr {key :: QName, val :: String}
> 
> module QName where
> import ...
> data QName = QName {name :: String, uri :: Maybe String, prefix :: Maybe
> String}
> 
> module Main where
> import qualified QName as Q
> import qualified Element as E
> ... Q.name ... E.name ...

+1 for this style

http://www.haskell.org/haskellwiki/Qualified_names
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to