HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulepath-pieces-0.2.1Haskell98

Web.PathPieces

Contents
  1. Deprecated
Synopsis
  • 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