Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-k committed Nov 22, 2023
1 parent d6fe05f commit c66fc4a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 32 deletions.
2 changes: 2 additions & 0 deletions examples/mig-example-apps/HtmlTemplate/src/View.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -30,6 +31,7 @@ data Templates = Templates
, postNotFound :: Template
}

-- | Loads templates with template haskell as pure values
templates :: Templates
templates =
Templates
Expand Down
31 changes: 6 additions & 25 deletions examples/mig-example-apps/mig-example-apps.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://github.com/anton-k/mig-example-apps#readme>
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
Expand All @@ -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
Expand Down Expand Up @@ -66,7 +63,6 @@ executable counter-client-mig-example-app
aeson
, aeson-pretty
, base >=4.7 && <5
, blaze-markup
, bytestring
, containers
, http-client
Expand All @@ -81,7 +77,6 @@ executable counter-client-mig-example-app
, pretty-simple
, random
, safe
, stache
, text
, time
default-language: GHC2021
Expand Down Expand Up @@ -114,7 +109,6 @@ executable counter-mig-example-app
aeson
, aeson-pretty
, base >=4.7 && <5
, blaze-markup
, bytestring
, containers
, http-types
Expand All @@ -128,7 +122,6 @@ executable counter-mig-example-app
, pretty-simple
, random
, safe
, stache
, text
, time
default-language: GHC2021
Expand Down Expand Up @@ -161,7 +154,6 @@ executable hello-world-client-mig-example-app
aeson
, aeson-pretty
, base >=4.7 && <5
, blaze-markup
, bytestring
, containers
, http-client
Expand All @@ -175,7 +167,6 @@ executable hello-world-client-mig-example-app
, pretty-simple
, random
, safe
, stache
, text
, time
default-language: GHC2021
Expand Down Expand Up @@ -208,7 +199,6 @@ executable hello-world-mig-example-app
aeson
, aeson-pretty
, base >=4.7 && <5
, blaze-markup
, bytestring
, containers
, http-types
Expand All @@ -221,7 +211,6 @@ executable hello-world-mig-example-app
, pretty-simple
, random
, safe
, stache
, text
, time
default-language: GHC2021
Expand Down Expand Up @@ -262,7 +251,6 @@ executable html-mig-example-app
, aeson-pretty
, base >=4.7 && <5
, blaze-html
, blaze-markup
, bytestring
, containers
, fast-logger
Expand All @@ -278,7 +266,6 @@ executable html-mig-example-app
, pretty-simple
, random
, safe
, stache
, text
, time
, uuid
Expand Down Expand Up @@ -377,7 +364,6 @@ executable json-api-mig-example-app
aeson
, aeson-pretty
, base >=4.7 && <5
, blaze-markup
, bytestring
, containers
, fast-logger
Expand All @@ -391,7 +377,6 @@ executable json-api-mig-example-app
, pretty-simple
, random
, safe
, stache
, text
, time
, yaml
Expand Down Expand Up @@ -425,7 +410,6 @@ executable route-args-client-mig-example-app
aeson
, aeson-pretty
, base >=4.7 && <5
, blaze-markup
, bytestring
, containers
, http-client
Expand All @@ -439,7 +423,6 @@ executable route-args-client-mig-example-app
, pretty-simple
, random
, safe
, stache
, text
, time
default-language: GHC2021
Expand Down Expand Up @@ -472,7 +455,6 @@ executable route-args-mig-example-app
aeson
, aeson-pretty
, base >=4.7 && <5
, blaze-markup
, bytestring
, containers
, http-types
Expand All @@ -485,7 +467,6 @@ executable route-args-mig-example-app
, pretty-simple
, random
, safe
, stache
, text
, time
default-language: GHC2021
13 changes: 6 additions & 7 deletions examples/mig-example-apps/package.yaml
Original file line number Diff line number Diff line change
@@ -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/*

Expand Down Expand Up @@ -73,8 +72,6 @@ dependencies:
- safe
- containers
- http-types
- stache
- blaze-markup

executables:
hello-world-mig-example-app:
Expand Down Expand Up @@ -173,4 +170,6 @@ executables:
- uuid
- http-api-data
- fast-logger
- stache
- blaze-markup

0 comments on commit c66fc4a

Please sign in to comment.