packages feed

bcp47-orphans-0.1.1.0: library/Data/BCP47/PathPieces.hs

{-# OPTIONS_GHC -fno-warn-orphans #-}

module Data.BCP47.PathPieces () where

import Control.Error.Util (hush)
import Data.BCP47 (BCP47, fromText, toText)
import Web.PathPieces (PathPiece (..))

instance PathPiece BCP47 where
  fromPathPiece = hush . fromText
  toPathPiece = toText