14 lines
235 B
Haskell
14 lines
235 B
Haskell
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
|
|
|
module Numeric.Natural.Instances
|
|
(
|
|
) where
|
|
|
|
import ClassyPrelude
|
|
import Numeric.Natural
|
|
import Web.PathPieces
|
|
|
|
instance PathPiece Natural where
|
|
toPathPiece = tshow
|
|
fromPathPiece = readMay
|