Paraiso-0.3.1.5: a code generator for partial differential equations solvers.

Safe HaskellSafe
LanguageHaskell2010

Language.Paraiso.Name

Description

name identifier.

Synopsis

Documentation

class Nameable a where Source

something that has name.

Minimal complete definition

name

Methods

name :: a -> Name Source

get its name.

nameText :: a -> Text Source

get its name as a Text.

nameStr :: a -> String Source

get its name as a String.

mkName :: Text -> Name Source

create a name from a Text. We do not export the constructor Name for future extensibility.

isNameOf :: Text -> a -> Named a Source

create Named object in an instance.

data Named a Source

Convert some type to a named type.

Constructors

Named Name a 

Instances

namee :: Named a -> a Source

The thing the name points to.