16 lines
283 B
Haskell
16 lines
283 B
Haskell
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
|
|
|
module Data.Scientific.Instances
|
|
(
|
|
) where
|
|
|
|
import ClassyPrelude
|
|
import Data.Scientific
|
|
|
|
import Web.PathPieces
|
|
|
|
|
|
instance PathPiece Scientific where
|
|
toPathPiece = pack . formatScientific Fixed Nothing
|
|
fromPathPiece = readFromPathPiece
|