1
1
mirror of https://github.com/srid/ema.git synced 2024-11-29 09:25:14 +03:00

Add Ord instance to Slug

This commit is contained in:
Sridhar Ratnakumar 2021-04-27 11:32:53 -04:00
parent a6a46f9430
commit 5e087cfda1
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
## Unreleased
- Remove Ex03_Documentation.hs (moved to separate repo, `ema-docs`)
- Add `Ord` instance to `Slug`
## 0.1.0.0 -- 2021-04-26

View File

@ -6,7 +6,7 @@ import qualified Data.Text as T
-- | An URL path is made of multiple slugs, separated by '/'
newtype Slug = Slug {unSlug :: Text}
deriving (Eq, Show)
deriving (Eq, Show, Ord)
instance IsString Slug where
fromString :: HasCallStack => String -> Slug