Add Text support

Šī revīzija ir iekļauta:
2024-09-26 22:48:20 +02:00
vecāks 91e52aeb2a
revīzija 8ff8726abe
2 mainīti faili ar 6 papildinājumiem un 0 dzēšanām

Parādīt failu

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

Parādīt failu

@@ -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