diff options
| author | Chris Wells <chris@mathematicaster.org> | 2026-01-29 15:33:24 -0600 |
|---|---|---|
| committer | Chris Wells <chris@mathematicaster.org> | 2026-01-29 15:33:24 -0600 |
| commit | 3a949d34da649b199235b06ab33927ad02cfdc26 (patch) | |
| tree | 3009bd8871dbb716aca93fd3bee0badba3bd717a /src/Data/Person.hs | |
| parent | 0c2ae07a2952c4041d960e1dee9ebfd8c594d597 (diff) | |
| download | main-3a949d34da649b199235b06ab33927ad02cfdc26.tar main-3a949d34da649b199235b06ab33927ad02cfdc26.tar.gz main-3a949d34da649b199235b06ab33927ad02cfdc26.tar.bz2 main-3a949d34da649b199235b06ab33927ad02cfdc26.tar.lz main-3a949d34da649b199235b06ab33927ad02cfdc26.tar.xz main-3a949d34da649b199235b06ab33927ad02cfdc26.tar.zst main-3a949d34da649b199235b06ab33927ad02cfdc26.zip | |
Things are compiling nicely finally
Diffstat (limited to 'src/Data/Person.hs')
| -rw-r--r-- | src/Data/Person.hs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Data/Person.hs b/src/Data/Person.hs index 389d1ed..3dbdd80 100644 --- a/src/Data/Person.hs +++ b/src/Data/Person.hs @@ -27,8 +27,11 @@ instance Binary a => Binary (Person a) type Person_ = Person StrictText -personHtml :: (ToMarkup a) => Person a -> Html -personHtml (Person n w) = linkedHtml $ Linked (contents $ renderNameFML $ contents . toMarkup <$> n) w Nothing +personHtml :: (StringConv a StrictText) => Person a -> Html +personHtml (Person n w) = linkedHtml $ Linked (renderNameFML $ ts <$> n) w Nothing + where + ts :: (StringConv a StrictText) => a -> StrictText + ts = toSL personFromName :: Name a -> Person a personFromName n = Person n Nothing |
