Safe Haskell | None |
---|---|
Language | Haskell2010 |
The module Data.Thorn.Basic.
Type Variants
These types
are used for representing type variants.
T0
, ..., T9
testtypevariant :: (String,Int,Int) testtypevariant = $(autofmap $[t|(,,) T0|]) (+10) (+20) ("hello",1,1) -- ("hello",11,21)
Names
modifyname :: (String, String) -> (String, String) -> String -> String Source
modifyname ("Prefix","Suffix") ("***","+++") "Hello" == "PrefixHelloSuffix" modifyname ("Prefix","Suffix") ("***","+++") ":%%%" == ":***%%%+++" modifyname ("prefix","suffix") ("***","+++") "hello" == "prefixhellosuffix" modifyname ("prefix","suffix") ("***","+++") "%%%" == "***%%%+++"