diff options
author | Yuchen Pei <hi@ypei.me> | 2022-09-15 17:45:53 +1000 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2022-09-15 17:45:53 +1000 |
commit | 265951e087809e8a45802bc00349d198f3515b19 (patch) | |
tree | 29f4c4bfa1a520c0e9754cb48c2c11d98e8d254f /src/Servall/Types.hs | |
parent | 33f47d6d86246160cceb14804c6bd9746aad3b1e (diff) |
[server] rendering some templates within infobox
also adjusted the parsers to not have overlapping skipspace
Diffstat (limited to 'src/Servall/Types.hs')
-rw-r--r-- | src/Servall/Types.hs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Servall/Types.hs b/src/Servall/Types.hs index ae4f73a..2c49532 100644 --- a/src/Servall/Types.hs +++ b/src/Servall/Types.hs @@ -9,14 +9,13 @@ import Data.Aeson ( (.:) , Value(..) , object ) -import qualified Data.HashMap.Lazy as HM import Data.Text ( Text ) import GHC.Generics ( Generic ) data WikiTemplate = WikiTemplate - { wtName :: Text + { wtName :: Text -- , wtSubName :: Maybe Text - , wtFields :: HM.HashMap Text Text + , wtArgs :: [(Maybe Text, Text)] } deriving Show |