2021-04-19 18:07:52 +03:00
|
|
|
|
cabal-version: 2.4
|
|
|
|
|
name: ema
|
2021-05-01 19:07:58 +03:00
|
|
|
|
version: 0.2.0.0
|
2021-04-19 18:07:52 +03:00
|
|
|
|
license: AGPL-3.0-only
|
2021-04-26 20:36:34 +03:00
|
|
|
|
copyright: 2021 Sridhar Ratnakumar
|
2021-04-19 18:07:52 +03:00
|
|
|
|
maintainer: srid@srid.ca
|
|
|
|
|
author: Sridhar Ratnakumar
|
|
|
|
|
category: Web
|
2021-04-26 21:22:49 +03:00
|
|
|
|
synopsis: Static site generator library with hot reload
|
|
|
|
|
bug-reports: https://github.com/srid/ema/issues
|
|
|
|
|
homepage: https://ema.srid.ca/
|
|
|
|
|
description:
|
|
|
|
|
Ema is a next-gen Haskell library for building jamstack-style static sites.
|
|
|
|
|
Ema sites are change-aware; in addition to good ol’ static site generation,
|
|
|
|
|
it provides a live server supporting fast hot-reload in the browser on code
|
|
|
|
|
or data change.
|
2021-04-26 21:28:05 +03:00
|
|
|
|
|
|
|
|
|
extra-source-files:
|
|
|
|
|
CHANGELOG.md
|
|
|
|
|
LICENSE
|
|
|
|
|
README.md
|
|
|
|
|
|
2021-04-20 19:36:53 +03:00
|
|
|
|
flag with-examples
|
|
|
|
|
description: Include examples and their dependencies
|
2021-04-21 00:09:37 +03:00
|
|
|
|
default: True
|
2021-04-20 19:36:53 +03:00
|
|
|
|
|
2021-04-23 01:12:11 +03:00
|
|
|
|
flag with-helpers
|
|
|
|
|
description: Include helper modules based on blaze-html
|
|
|
|
|
default: True
|
|
|
|
|
|
2021-04-19 18:07:52 +03:00
|
|
|
|
library
|
|
|
|
|
-- Modules included in this executable, other than Main.
|
|
|
|
|
-- other-modules:
|
|
|
|
|
|
|
|
|
|
-- LANGUAGE extensions used by modules in this package.
|
|
|
|
|
-- other-extensions:
|
|
|
|
|
build-depends:
|
|
|
|
|
, aeson
|
|
|
|
|
, async
|
2021-04-26 21:22:49 +03:00
|
|
|
|
, base >=4.13.0.0 && <=4.17.0.0
|
2021-04-19 18:07:52 +03:00
|
|
|
|
, containers
|
|
|
|
|
, data-default
|
2021-04-23 00:08:57 +03:00
|
|
|
|
, directory
|
2021-04-19 18:07:52 +03:00
|
|
|
|
, filepath
|
2021-05-06 22:44:53 +03:00
|
|
|
|
, filepattern
|
2021-04-19 18:07:52 +03:00
|
|
|
|
, http-types
|
2021-04-26 20:36:34 +03:00
|
|
|
|
, lvar
|
2021-04-26 19:46:35 +03:00
|
|
|
|
, monad-logger
|
|
|
|
|
, monad-logger-extras
|
2021-04-19 18:07:52 +03:00
|
|
|
|
, neat-interpolation
|
2021-04-22 22:57:31 +03:00
|
|
|
|
, optparse-applicative
|
2021-04-19 18:07:52 +03:00
|
|
|
|
, relude
|
2021-04-20 03:05:18 +03:00
|
|
|
|
, safe-exceptions
|
2021-04-19 18:07:52 +03:00
|
|
|
|
, stm
|
|
|
|
|
, text
|
2021-05-08 15:57:20 +03:00
|
|
|
|
, unicode-transforms
|
2021-04-26 19:46:35 +03:00
|
|
|
|
, unliftio
|
2021-05-09 18:42:41 +03:00
|
|
|
|
, uri-encode
|
2021-04-19 18:07:52 +03:00
|
|
|
|
, wai
|
2021-04-25 20:15:30 +03:00
|
|
|
|
, wai-middleware-static
|
2021-04-19 18:07:52 +03:00
|
|
|
|
, wai-websockets
|
|
|
|
|
, warp
|
|
|
|
|
, websockets
|
2021-04-21 00:09:37 +03:00
|
|
|
|
|
2021-04-24 05:00:46 +03:00
|
|
|
|
if (flag(with-helpers) || flag(with-examples))
|
2021-04-20 19:36:53 +03:00
|
|
|
|
build-depends:
|
2021-04-23 01:12:11 +03:00
|
|
|
|
, blaze-html
|
|
|
|
|
, blaze-markup
|
2021-05-06 22:44:53 +03:00
|
|
|
|
, commonmark
|
|
|
|
|
, commonmark-extensions
|
|
|
|
|
, commonmark-pandoc
|
2021-04-24 05:00:46 +03:00
|
|
|
|
, fsnotify
|
2021-05-16 23:34:08 +03:00
|
|
|
|
, yaml
|
2021-05-06 22:44:53 +03:00
|
|
|
|
, megaparsec
|
|
|
|
|
, pandoc-types
|
2021-05-10 05:49:24 +03:00
|
|
|
|
, parsec
|
2021-05-06 22:44:53 +03:00
|
|
|
|
, parser-combinators
|
2021-04-23 01:12:11 +03:00
|
|
|
|
|
|
|
|
|
if flag(with-examples)
|
2021-05-06 22:44:53 +03:00
|
|
|
|
build-depends: time
|
2021-04-19 18:07:52 +03:00
|
|
|
|
|
|
|
|
|
mixins:
|
|
|
|
|
base hiding (Prelude),
|
|
|
|
|
relude (Relude as Prelude, Relude.Container.One),
|
|
|
|
|
relude
|
|
|
|
|
|
|
|
|
|
ghc-options:
|
|
|
|
|
-Wall -Wincomplete-record-updates -Wincomplete-uni-patterns
|
|
|
|
|
|
|
|
|
|
default-extensions:
|
|
|
|
|
FlexibleContexts
|
|
|
|
|
FlexibleInstances
|
|
|
|
|
KindSignatures
|
|
|
|
|
LambdaCase
|
|
|
|
|
MultiParamTypeClasses
|
|
|
|
|
MultiWayIf
|
|
|
|
|
OverloadedStrings
|
|
|
|
|
ScopedTypeVariables
|
|
|
|
|
TupleSections
|
|
|
|
|
ViewPatterns
|
|
|
|
|
|
2021-04-21 01:14:13 +03:00
|
|
|
|
exposed-modules:
|
2021-04-22 23:46:02 +03:00
|
|
|
|
Ema
|
2021-04-22 23:39:06 +03:00
|
|
|
|
Ema.CLI
|
2021-04-23 01:12:11 +03:00
|
|
|
|
|
2021-04-24 05:00:46 +03:00
|
|
|
|
if (flag(with-helpers) || flag(with-examples))
|
2021-04-23 01:12:11 +03:00
|
|
|
|
exposed-modules:
|
2021-04-24 05:00:46 +03:00
|
|
|
|
Ema.Helper.FileSystem
|
2021-05-06 22:44:53 +03:00
|
|
|
|
Ema.Helper.Markdown
|
2021-05-08 15:57:20 +03:00
|
|
|
|
Ema.Helper.PathTree
|
2021-04-23 01:12:11 +03:00
|
|
|
|
Ema.Helper.Tailwind
|
2021-04-21 01:14:13 +03:00
|
|
|
|
|
|
|
|
|
other-modules:
|
2021-04-22 23:46:02 +03:00
|
|
|
|
Ema.App
|
|
|
|
|
Ema.Generate
|
|
|
|
|
Ema.Route
|
2021-04-19 22:34:10 +03:00
|
|
|
|
Ema.Route.Slug
|
|
|
|
|
Ema.Route.UrlStrategy
|
2021-04-20 01:23:46 +03:00
|
|
|
|
Ema.Server
|
2021-04-21 00:09:37 +03:00
|
|
|
|
|
2021-04-20 19:36:53 +03:00
|
|
|
|
if flag(with-examples)
|
2021-04-24 19:04:16 +03:00
|
|
|
|
exposed-modules:
|
2021-04-20 19:36:53 +03:00
|
|
|
|
Ema.Example.Ex01_HelloWorld
|
2021-04-27 19:59:19 +03:00
|
|
|
|
Ema.Example.Ex02_Basic
|
|
|
|
|
Ema.Example.Ex03_Clock
|
2021-04-19 18:07:52 +03:00
|
|
|
|
|
|
|
|
|
hs-source-dirs: src
|
|
|
|
|
default-language: Haskell2010
|