Add Text support

This commit is contained in:
2024-09-26 22:48:20 +02:00
부모 91e52aeb2a
커밋 8ff8726abe
2개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@@ -1,3 +1,4 @@
{-# LANGUAGE OverloadedStrings #-}
module SiteGenerator (generateSite) where
import Types

파일 보기

@@ -5,9 +5,11 @@ module Types.Value
import Types.Values
import Data.Text (Text)
import Language.Haskell.TH.Syntax (Lift)
data Value = String String
| Text Text
| Bool Bool
| ImageConversionSettings ImageConversionSettings
| Template Template
@@ -22,5 +24,8 @@ class Valuable a where
instance Valuable String where
toValue = String
instance Valuable Text where
toValue = Text
instance Valuable ImageConversionSettings where
toValue = ImageConversionSettings