HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulepath-pieces-0.2.1Haskell98

Web.PathPieces

  • 2 classes
  • 6 values
  • Packagepath-pieces-0.2.1
  • Exports8
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourcePathPieces.hs
classclass PathPiece s where
#

Methods

Instances18PathPiece, …
valuereadFromPathPiece :: Read s => Text -> Maybe s
#

A function for helping generate free PathPiece instances for enumeration data types that have derived Read and Show instances. Intended to be used like this:

data MyData = Foo | Bar | Baz
  deriving (Read,Show)
instance PathPiece MyData where
  fromPathPiece = readFromPathPiece
  toPathPiece = showToPathPiece

Since 0.2.1.

Deprecated

4 declarations