diff options
| author | Chris Wells <chris@mathematicaster.org> | 2025-01-31 13:19:33 -0600 |
|---|---|---|
| committer | Chris Wells <chris@mathematicaster.org> | 2025-01-31 13:19:33 -0600 |
| commit | c9e6d0ebabecf04e8f091234d293a85afe712057 (patch) | |
| tree | 0d657931c32488e4ee04cb1a20352f697a5e7a52 /src/Prolog.hs | |
| parent | ca1d4d3d4371c8175ea6addb1ca1b09c3b56a7bb (diff) | |
| download | main-c9e6d0ebabecf04e8f091234d293a85afe712057.tar main-c9e6d0ebabecf04e8f091234d293a85afe712057.tar.gz main-c9e6d0ebabecf04e8f091234d293a85afe712057.tar.bz2 main-c9e6d0ebabecf04e8f091234d293a85afe712057.tar.lz main-c9e6d0ebabecf04e8f091234d293a85afe712057.tar.xz main-c9e6d0ebabecf04e8f091234d293a85afe712057.tar.zst main-c9e6d0ebabecf04e8f091234d293a85afe712057.zip | |
Adding more functionality
Diffstat (limited to 'src/Prolog.hs')
| -rw-r--r-- | src/Prolog.hs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Prolog.hs b/src/Prolog.hs index 4b3c666..a6ac1b5 100644 --- a/src/Prolog.hs +++ b/src/Prolog.hs @@ -21,6 +21,7 @@ module Prolog -- * Types , Binary , Generic + , Generic1 , Generically (..) , MonadThrow (..) , Exception (..) @@ -76,8 +77,10 @@ import Data.String.Conv import Data.Text qualified as T import Data.Text.Lazy qualified as TL import GHC.Generics +import Network.URI import Hakyll qualified as H +import Text.Blaze import Text.Blaze.Html import Text.Blaze.Html.Renderer.Pretty as BS import Text.Blaze.Html.Renderer.Text as BT @@ -147,6 +150,8 @@ instance Binary L.MathType instance Binary L.Measure instance Binary L.TeXArg instance Binary L.LaTeX +instance Binary URIAuth +instance Binary URI instance H.Writable L.LaTeX where write p = L.renderFile p . H.itemBody @@ -188,3 +193,26 @@ instance StringConv Html B.ByteString where instance StringConv Html BL.ByteString where strConv _ = BB.renderHtml + +instance StringConv URI String where + strConv _ = show + +instance StringConv URI T.Text where + strConv l = strConv l . show + +instance StringConv URI TL.Text where + strConv l = strConv l . show + +instance StringConv URI B.ByteString where + strConv l = strConv l . show + +instance StringConv URI BL.ByteString where + strConv l = strConv l . show + +instance ToMarkup URI where + toMarkup = toMarkup . show + preEscapedToMarkup = preEscapedToMarkup . show + +instance ToValue URI where + toValue = toValue . show + preEscapedToValue = preEscapedToValue . show |
