diff --git a/examples/mig-example-apps/HtmlTemplate/src/View.hs b/examples/mig-example-apps/HtmlTemplate/src/View.hs
index 349835d..e274721 100644
--- a/examples/mig-example-apps/HtmlTemplate/src/View.hs
+++ b/examples/mig-example-apps/HtmlTemplate/src/View.hs
@@ -20,6 +20,7 @@ renderMustacheHtml :: (ToJSON a) => Template -> a -> Html
renderMustacheHtml template value =
H.preEscapedLazyText $ renderMustache template (toJSON value)
+-- | Templates for the site
data Templates = Templates
{ main :: Template
, greeting :: Template
@@ -30,6 +31,7 @@ data Templates = Templates
, postNotFound :: Template
}
+-- | Loads templates with template haskell as pure values
templates :: Templates
templates =
Templates
diff --git a/examples/mig-example-apps/mig-example-apps.cabal b/examples/mig-example-apps/mig-example-apps.cabal
index 7fd47b1..cc5572c 100644
--- a/examples/mig-example-apps/mig-example-apps.cabal
+++ b/examples/mig-example-apps/mig-example-apps.cabal
@@ -7,19 +7,16 @@ cabal-version: 1.12
name: mig-example-apps
version: 0.1.0.0
description: Please see the README on GitHub at
-homepage: https://github.com/githubuser/mig-example-apps#readme
-bug-reports: https://github.com/githubuser/mig-example-apps/issues
-author: Author name here
-maintainer: example@example.com
-copyright: 2023 Author name here
+homepage: https://github.com/anton-k/mig#readme
+bug-reports: https://github.com/anton-k/mig/issues
+author: Anton Kholomiov
+maintainer: anton.kholomiov@gmail.com
+copyright: 2023 Anton Kholomiov
license: BSD3
license-file: LICENSE
build-type: Simple
extra-source-files:
README.md
- Html/resources/haskell-logo.png
- Html/resources/lambda-logo.png
- Html/resources/milligram.min.css
HtmlTemplate/resources/haskell-logo.png
HtmlTemplate/resources/lambda-logo.png
HtmlTemplate/resources/milligram.min.css
@@ -33,7 +30,7 @@ extra-source-files:
source-repository head
type: git
- location: https://github.com/githubuser/mig-example-apps
+ location: https://github.com/anton-k/mig
executable counter-client-mig-example-app
main-is: Main.hs
@@ -66,7 +63,6 @@ executable counter-client-mig-example-app
aeson
, aeson-pretty
, base >=4.7 && <5
- , blaze-markup
, bytestring
, containers
, http-client
@@ -81,7 +77,6 @@ executable counter-client-mig-example-app
, pretty-simple
, random
, safe
- , stache
, text
, time
default-language: GHC2021
@@ -114,7 +109,6 @@ executable counter-mig-example-app
aeson
, aeson-pretty
, base >=4.7 && <5
- , blaze-markup
, bytestring
, containers
, http-types
@@ -128,7 +122,6 @@ executable counter-mig-example-app
, pretty-simple
, random
, safe
- , stache
, text
, time
default-language: GHC2021
@@ -161,7 +154,6 @@ executable hello-world-client-mig-example-app
aeson
, aeson-pretty
, base >=4.7 && <5
- , blaze-markup
, bytestring
, containers
, http-client
@@ -175,7 +167,6 @@ executable hello-world-client-mig-example-app
, pretty-simple
, random
, safe
- , stache
, text
, time
default-language: GHC2021
@@ -208,7 +199,6 @@ executable hello-world-mig-example-app
aeson
, aeson-pretty
, base >=4.7 && <5
- , blaze-markup
, bytestring
, containers
, http-types
@@ -221,7 +211,6 @@ executable hello-world-mig-example-app
, pretty-simple
, random
, safe
- , stache
, text
, time
default-language: GHC2021
@@ -262,7 +251,6 @@ executable html-mig-example-app
, aeson-pretty
, base >=4.7 && <5
, blaze-html
- , blaze-markup
, bytestring
, containers
, fast-logger
@@ -278,7 +266,6 @@ executable html-mig-example-app
, pretty-simple
, random
, safe
- , stache
, text
, time
, uuid
@@ -377,7 +364,6 @@ executable json-api-mig-example-app
aeson
, aeson-pretty
, base >=4.7 && <5
- , blaze-markup
, bytestring
, containers
, fast-logger
@@ -391,7 +377,6 @@ executable json-api-mig-example-app
, pretty-simple
, random
, safe
- , stache
, text
, time
, yaml
@@ -425,7 +410,6 @@ executable route-args-client-mig-example-app
aeson
, aeson-pretty
, base >=4.7 && <5
- , blaze-markup
, bytestring
, containers
, http-client
@@ -439,7 +423,6 @@ executable route-args-client-mig-example-app
, pretty-simple
, random
, safe
- , stache
, text
, time
default-language: GHC2021
@@ -472,7 +455,6 @@ executable route-args-mig-example-app
aeson
, aeson-pretty
, base >=4.7 && <5
- , blaze-markup
, bytestring
, containers
, http-types
@@ -485,7 +467,6 @@ executable route-args-mig-example-app
, pretty-simple
, random
, safe
- , stache
, text
, time
default-language: GHC2021
diff --git a/examples/mig-example-apps/package.yaml b/examples/mig-example-apps/package.yaml
index 56fc2b6..5fef2ac 100644
--- a/examples/mig-example-apps/package.yaml
+++ b/examples/mig-example-apps/package.yaml
@@ -1,14 +1,13 @@
name: mig-example-apps
version: 0.1.0.0
-github: "githubuser/mig-example-apps"
+github: "anton-k/mig"
license: BSD3
-author: "Author name here"
-maintainer: "example@example.com"
-copyright: "2023 Author name here"
+author: "Anton Kholomiov"
+maintainer: "anton.kholomiov@gmail.com"
+copyright: "2023 Anton Kholomiov"
extra-source-files:
- README.md
-- Html/resources/*
- HtmlTemplate/resources/*
- HtmlTemplate/templates/*
@@ -73,8 +72,6 @@ dependencies:
- safe
- containers
- http-types
- - stache
- - blaze-markup
executables:
hello-world-mig-example-app:
@@ -173,4 +170,6 @@ executables:
- uuid
- http-api-data
- fast-logger
+ - stache
+ - blaze-markup