2021-04-19 18:07:52 +03:00
|
|
|
|
cabal-version: 2.4
|
|
|
|
|
name: ema
|
2022-04-07 19:36:09 +03:00
|
|
|
|
version: 0.7.2.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
|
|
|
|
|
|
2022-06-11 18:42:52 +03:00
|
|
|
|
-- This flag is enabled by default just so `bin/run` can work on macOS M1.
|
|
|
|
|
-- When disabling, ensure that macOS build doesn't break.
|
2021-04-20 19:36:53 +03:00
|
|
|
|
flag with-examples
|
|
|
|
|
description: Include examples and their dependencies
|
2022-06-11 18:42:52 +03:00
|
|
|
|
default: True
|
2021-04-20 19:36:53 +03:00
|
|
|
|
|
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
|
2022-01-09 04:01:45 +03:00
|
|
|
|
, base >=4.13.0.0 && <=4.17.0.0
|
|
|
|
|
, constraints-extras
|
2021-04-19 18:07:52 +03:00
|
|
|
|
, containers
|
2022-01-09 21:40:33 +03:00
|
|
|
|
, data-default
|
2022-01-09 04:01:45 +03:00
|
|
|
|
, dependent-sum
|
|
|
|
|
, dependent-sum-template
|
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
|
2022-03-12 02:39:55 +03:00
|
|
|
|
, generic-optics
|
2022-03-09 00:29:50 +03:00
|
|
|
|
, generics-sop
|
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
|
2022-03-06 18:46:54 +03:00
|
|
|
|
, mtl
|
2021-04-19 18:07:52 +03:00
|
|
|
|
, neat-interpolation
|
2022-03-12 02:39:55 +03:00
|
|
|
|
, optics-core
|
2021-04-22 22:57:31 +03:00
|
|
|
|
, optparse-applicative
|
2022-06-27 19:28:22 +03:00
|
|
|
|
, profunctors
|
2022-03-19 01:50:23 +03:00
|
|
|
|
, relude >=1.0
|
2022-03-09 00:29:50 +03:00
|
|
|
|
, sop-core
|
2021-04-19 18:07:52 +03:00
|
|
|
|
, text
|
2021-04-26 19:46:35 +03:00
|
|
|
|
, unliftio
|
2022-02-05 20:05:54 +03:00
|
|
|
|
, url-slug
|
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
|
|
|
|
|
2022-02-05 03:56:21 +03:00
|
|
|
|
if 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
|
2022-04-15 00:18:34 +03:00
|
|
|
|
, fsnotify
|
2022-02-05 03:56:21 +03:00
|
|
|
|
, 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
|
2022-01-30 19:59:27 +03:00
|
|
|
|
-Wmissing-deriving-strategies -Wunused-foralls -Wunused-foralls
|
|
|
|
|
-fprint-explicit-foralls -fprint-explicit-kinds
|
2021-04-19 18:07:52 +03:00
|
|
|
|
|
|
|
|
|
default-extensions:
|
2022-01-30 19:59:27 +03:00
|
|
|
|
NoStarIsType
|
|
|
|
|
BangPatterns
|
|
|
|
|
ConstraintKinds
|
|
|
|
|
DataKinds
|
|
|
|
|
DeriveDataTypeable
|
|
|
|
|
DeriveFoldable
|
|
|
|
|
DeriveFunctor
|
|
|
|
|
DeriveGeneric
|
|
|
|
|
DeriveLift
|
|
|
|
|
DeriveTraversable
|
|
|
|
|
DerivingStrategies
|
|
|
|
|
DerivingVia
|
|
|
|
|
EmptyCase
|
|
|
|
|
EmptyDataDecls
|
|
|
|
|
EmptyDataDeriving
|
|
|
|
|
ExistentialQuantification
|
|
|
|
|
ExplicitForAll
|
2021-04-19 18:07:52 +03:00
|
|
|
|
FlexibleContexts
|
|
|
|
|
FlexibleInstances
|
2022-01-30 19:59:27 +03:00
|
|
|
|
GADTSyntax
|
|
|
|
|
GeneralisedNewtypeDeriving
|
|
|
|
|
ImportQualifiedPost
|
2021-04-19 18:07:52 +03:00
|
|
|
|
KindSignatures
|
|
|
|
|
LambdaCase
|
|
|
|
|
MultiParamTypeClasses
|
|
|
|
|
MultiWayIf
|
2022-01-30 19:59:27 +03:00
|
|
|
|
NumericUnderscores
|
2021-04-19 18:07:52 +03:00
|
|
|
|
OverloadedStrings
|
2022-01-30 19:59:27 +03:00
|
|
|
|
PolyKinds
|
|
|
|
|
PostfixOperators
|
|
|
|
|
RankNTypes
|
2021-04-19 18:07:52 +03:00
|
|
|
|
ScopedTypeVariables
|
2022-01-30 19:59:27 +03:00
|
|
|
|
StandaloneDeriving
|
|
|
|
|
StandaloneKindSignatures
|
2021-04-19 18:07:52 +03:00
|
|
|
|
TupleSections
|
2022-01-30 19:59:27 +03:00
|
|
|
|
TypeApplications
|
|
|
|
|
TypeFamilies
|
|
|
|
|
TypeOperators
|
2021-04-19 18:07:52 +03:00
|
|
|
|
ViewPatterns
|
|
|
|
|
|
2021-04-21 01:14:13 +03:00
|
|
|
|
exposed-modules:
|
2021-04-22 23:46:02 +03:00
|
|
|
|
Ema
|
|
|
|
|
Ema.App
|
2021-05-22 07:58:06 +03:00
|
|
|
|
Ema.Asset
|
2022-03-12 02:39:55 +03:00
|
|
|
|
Ema.CLI
|
2022-03-06 18:49:59 +03:00
|
|
|
|
Ema.Dynamic
|
2021-04-22 23:46:02 +03:00
|
|
|
|
Ema.Generate
|
2022-03-12 02:39:55 +03:00
|
|
|
|
Ema.Route.Class
|
2022-03-19 20:58:46 +03:00
|
|
|
|
Ema.Route.Encoder
|
2022-06-29 03:49:32 +03:00
|
|
|
|
Ema.Route.Encoder.Check
|
2022-06-28 18:01:18 +03:00
|
|
|
|
Ema.Route.Generic
|
|
|
|
|
Ema.Route.Generic.RGeneric
|
|
|
|
|
Ema.Route.Generic.Sub
|
2022-06-28 02:30:31 +03:00
|
|
|
|
Ema.Route.Lib.File
|
|
|
|
|
Ema.Route.Lib.Folder
|
2022-06-28 18:01:18 +03:00
|
|
|
|
Ema.Route.Lib.Multi
|
2022-03-12 02:39:55 +03:00
|
|
|
|
Ema.Route.Url
|
2021-04-20 01:23:46 +03:00
|
|
|
|
Ema.Server
|
2022-05-21 17:53:28 +03:00
|
|
|
|
Ema.Site
|
2022-06-29 00:22:12 +03:00
|
|
|
|
GHC.TypeLits.Extra
|
2021-04-21 00:09:37 +03:00
|
|
|
|
|
2022-06-28 18:01:18 +03:00
|
|
|
|
if impl(ghc >=9.2)
|
|
|
|
|
exposed-modules: GHC.TypeLits.Extra.Symbol
|
|
|
|
|
|
|
|
|
|
if (flag(with-examples) && impl(ghc >=9.2))
|
2022-02-05 20:05:54 +03:00
|
|
|
|
other-modules:
|
2022-02-05 03:56:21 +03:00
|
|
|
|
Ema.Example.Common
|
2022-06-06 04:46:53 +03:00
|
|
|
|
Ema.Example.Ex00_Hello
|
2022-03-13 00:02:25 +03:00
|
|
|
|
Ema.Example.Ex01_Basic
|
2022-05-17 03:30:31 +03:00
|
|
|
|
Ema.Example.Ex02_Clock
|
2022-05-21 16:48:16 +03:00
|
|
|
|
Ema.Example.Ex03_Store
|
2022-02-13 20:23:54 +03:00
|
|
|
|
Ema.Example.Ex04_Multi
|
2022-06-29 00:34:51 +03:00
|
|
|
|
Ema.Example.Ex05_MultiRoute
|
2022-06-28 18:01:18 +03:00
|
|
|
|
Ema.Route.Generic.Example
|
2021-04-19 18:07:52 +03:00
|
|
|
|
|
|
|
|
|
hs-source-dirs: src
|
|
|
|
|
default-language: Haskell2010
|
2022-01-09 04:01:45 +03:00
|
|
|
|
|
|
|
|
|
if impl(ghc >=8.10)
|
|
|
|
|
ghc-options: -Wunused-packages
|