2021-02-04 15:57:15 +03:00
|
|
|
name: monomer
|
2021-07-31 05:27:05 +03:00
|
|
|
version: 1.0.0.0
|
2021-07-19 03:36:16 +03:00
|
|
|
github: fjvallarino/monomer
|
2021-02-04 15:57:15 +03:00
|
|
|
license: BSD3
|
2021-07-19 03:36:16 +03:00
|
|
|
author: Francisco Vallarino
|
|
|
|
maintainer: fjvallarino@gmail.com
|
|
|
|
copyright: 2018 Francisco Vallarino
|
2019-09-23 17:46:21 +03:00
|
|
|
|
|
|
|
extra-source-files:
|
|
|
|
- README.md
|
|
|
|
- ChangeLog.md
|
|
|
|
|
|
|
|
# Metadata used when publishing your package
|
2021-05-29 02:08:01 +03:00
|
|
|
synopsis: GUI Library
|
|
|
|
category: GUI
|
|
|
|
description:
|
2021-07-19 03:36:16 +03:00
|
|
|
Monomer is an easy to use, cross platform, GUI library for writing Haskell
|
|
|
|
applications.
|
|
|
|
|
|
|
|
It provides a framework similar to the Elm Architecture, allowing to create
|
|
|
|
GUIs functionally using an extensible set of widgets.
|
|
|
|
|
|
|
|
You can find the available widgets in @Monomer.Widgets@.
|
2019-09-23 17:46:21 +03:00
|
|
|
|
2021-05-29 02:08:01 +03:00
|
|
|
Please see the README on Github at <https://github.com/fjvallarino/monomer#readme>
|
2019-09-23 17:46:21 +03:00
|
|
|
|
|
|
|
default-extensions:
|
|
|
|
- OverloadedStrings
|
|
|
|
|
|
|
|
dependencies:
|
2021-07-31 05:27:05 +03:00
|
|
|
- async >= 2.1 && < 2.3
|
|
|
|
- attoparsec >= 0.12 && < 0.15
|
|
|
|
- base >= 4.11 && < 5
|
|
|
|
- bytestring >= 0.10 && < 0.12
|
|
|
|
- bytestring-to-vector >= 0.3 && < 0.4
|
|
|
|
- containers >= 0.5.11 && < 0.7
|
|
|
|
- data-default >= 0.5 && < 0.8
|
|
|
|
- exceptions >= 0.10 && < 0.11
|
|
|
|
- extra >= 1.6 && < 1.9
|
|
|
|
- formatting >= 6.0 && < 8.0
|
|
|
|
- http-client >= 0.6 && < 0.9
|
|
|
|
- JuicyPixels >= 3.2.9 && < 3.5
|
|
|
|
- lens >= 4.16 && < 5.1
|
|
|
|
- mtl >= 2.1 && < 2.3
|
|
|
|
- nanovg >= 0.8 && < 1.0
|
|
|
|
- OpenGL >= 3.0 && < 3.1
|
|
|
|
- process >= 1.6 && < 1.7
|
|
|
|
- safe >= 0.3 && < 0.4
|
|
|
|
- sdl2 >= 2.4.0 && < 2.6
|
|
|
|
- stm >= 2.5 && < 2.6
|
|
|
|
- text >= 1.2 && < 1.3
|
|
|
|
- text-show >= 3.7 && < 3.10
|
2021-08-01 07:34:09 +03:00
|
|
|
- time >= 1.8 && < 1.13
|
2021-07-31 05:27:05 +03:00
|
|
|
- transformers >= 0.5 && < 0.7
|
|
|
|
- unordered-containers >= 0.2.8 && < 0.3
|
|
|
|
- vector >= 0.12 && < 0.14
|
|
|
|
- wreq >= 0.5.2 && < 0.6
|
2019-09-23 17:46:21 +03:00
|
|
|
|
|
|
|
library:
|
|
|
|
source-dirs: src
|
2021-07-04 01:39:46 +03:00
|
|
|
include-dirs: cbits
|
2021-07-31 05:27:05 +03:00
|
|
|
install-includes:
|
|
|
|
- fontmanager.h
|
2019-09-23 17:46:21 +03:00
|
|
|
c-sources:
|
2021-06-20 21:05:18 +03:00
|
|
|
- cbits/dpi.c
|
2021-07-04 01:39:46 +03:00
|
|
|
- cbits/fontmanager.c
|
|
|
|
- cbits/glew.c
|
2021-07-31 05:27:05 +03:00
|
|
|
build-tools: c2hs
|
2019-09-23 17:46:21 +03:00
|
|
|
cc-options:
|
|
|
|
- -fPIC
|
|
|
|
ghc-options:
|
|
|
|
- -fwarn-incomplete-patterns
|
2021-06-19 22:30:09 +03:00
|
|
|
when:
|
|
|
|
- condition: os(windows)
|
|
|
|
then:
|
|
|
|
extra-libraries: glew32
|
|
|
|
else:
|
|
|
|
extra-libraries: GLEW
|
2019-09-23 17:46:21 +03:00
|
|
|
|
|
|
|
executables:
|
2020-05-04 20:19:48 +03:00
|
|
|
monomer-exe:
|
2021-02-04 15:57:15 +03:00
|
|
|
main: Main.hs
|
|
|
|
source-dirs: app
|
2019-09-23 17:46:21 +03:00
|
|
|
ghc-options:
|
|
|
|
- -fwarn-incomplete-patterns
|
|
|
|
- -threaded
|
|
|
|
- -rtsopts
|
|
|
|
- -with-rtsopts=-N
|
|
|
|
- -with-rtsopts=-T
|
|
|
|
|
|
|
|
dependencies:
|
2021-07-31 05:27:05 +03:00
|
|
|
- ekg >= 0.4 && < 0.4.1
|
|
|
|
- lens >= 4.16 && < 5.1
|
2020-05-04 20:19:48 +03:00
|
|
|
- monomer
|
2019-09-23 17:46:21 +03:00
|
|
|
|
2021-04-27 07:03:36 +03:00
|
|
|
books:
|
2021-02-04 15:57:15 +03:00
|
|
|
main: Main.hs
|
2021-04-27 07:03:36 +03:00
|
|
|
source-dirs: examples/books
|
2021-07-05 05:41:45 +03:00
|
|
|
ghc-options:
|
|
|
|
- -threaded
|
2021-02-04 15:57:15 +03:00
|
|
|
dependencies:
|
2021-07-31 05:27:05 +03:00
|
|
|
- aeson >= 1.4 && < 1.6
|
|
|
|
- lens >= 4.16 && < 5.1
|
2021-02-04 15:57:15 +03:00
|
|
|
- monomer
|
2021-07-31 05:27:05 +03:00
|
|
|
- text-show >= 3.7 && < 3.10
|
|
|
|
- wreq >= 0.5.2 && < 0.6
|
2021-02-04 15:57:15 +03:00
|
|
|
|
2021-04-27 07:03:36 +03:00
|
|
|
generative:
|
2021-02-12 02:45:24 +03:00
|
|
|
main: Main.hs
|
2021-04-27 07:03:36 +03:00
|
|
|
source-dirs: examples/generative
|
2021-07-07 02:39:08 +03:00
|
|
|
ghc-options:
|
|
|
|
- -threaded
|
2021-02-12 02:45:24 +03:00
|
|
|
dependencies:
|
2021-07-31 05:27:05 +03:00
|
|
|
- lens >= 4.16 && < 5.1
|
2021-02-12 02:45:24 +03:00
|
|
|
- monomer
|
2021-07-31 05:27:05 +03:00
|
|
|
- random >= 1.1 && < 1.3
|
|
|
|
- text-show >= 3.7 && < 3.10
|
2021-02-12 02:45:24 +03:00
|
|
|
|
2021-03-12 16:38:38 +03:00
|
|
|
ticker:
|
|
|
|
main: Main.hs
|
|
|
|
source-dirs: examples/ticker
|
2021-07-07 02:39:08 +03:00
|
|
|
ghc-options:
|
|
|
|
- -threaded
|
2021-03-12 16:38:38 +03:00
|
|
|
dependencies:
|
2021-07-31 05:27:05 +03:00
|
|
|
- aeson >= 1.4 && < 1.6
|
|
|
|
- lens >= 4.16 && < 5.1
|
2021-03-12 16:38:38 +03:00
|
|
|
- monomer
|
2021-07-31 05:27:05 +03:00
|
|
|
- scientific >= 0.3 && < 0.4
|
|
|
|
- text-show >= 3.7 && < 3.10
|
|
|
|
- websockets >= 0.12 && < 0.13
|
|
|
|
- wuss >= 1.1 && < 1.2
|
2021-03-12 16:38:38 +03:00
|
|
|
|
2021-04-27 07:03:36 +03:00
|
|
|
todo:
|
|
|
|
main: Main.hs
|
|
|
|
source-dirs: examples/todo
|
2021-07-05 05:41:45 +03:00
|
|
|
ghc-options:
|
|
|
|
- -threaded
|
2021-04-27 07:03:36 +03:00
|
|
|
dependencies:
|
2021-07-31 05:27:05 +03:00
|
|
|
- lens >= 4.16 && < 5.1
|
2021-04-27 07:03:36 +03:00
|
|
|
- monomer
|
2021-07-31 05:27:05 +03:00
|
|
|
- text-show >= 3.7 && < 3.10
|
2021-04-27 07:03:36 +03:00
|
|
|
|
2021-06-08 06:22:21 +03:00
|
|
|
tutorial:
|
|
|
|
main: Main.hs
|
|
|
|
source-dirs: examples/tutorial
|
2021-07-07 02:39:08 +03:00
|
|
|
ghc-options:
|
|
|
|
- -threaded
|
2021-06-08 06:22:21 +03:00
|
|
|
dependencies:
|
2021-07-31 05:27:05 +03:00
|
|
|
- lens >= 4.16 && < 5.1
|
2021-06-08 06:22:21 +03:00
|
|
|
- monomer
|
2021-07-31 05:27:05 +03:00
|
|
|
- random >= 1.1 && < 1.3
|
|
|
|
- text-show >= 3.7 && < 3.10
|
2021-08-01 07:34:09 +03:00
|
|
|
- time >= 1.8 && < 1.13
|
2021-06-08 06:22:21 +03:00
|
|
|
|
2019-09-23 17:46:21 +03:00
|
|
|
tests:
|
2020-05-04 20:19:48 +03:00
|
|
|
monomer-test:
|
2021-02-12 02:45:24 +03:00
|
|
|
main: Spec.hs
|
|
|
|
source-dirs: test/unit
|
2019-09-23 17:46:21 +03:00
|
|
|
ghc-options:
|
2021-07-07 02:39:08 +03:00
|
|
|
- -threaded
|
2019-09-23 17:46:21 +03:00
|
|
|
- -fwarn-incomplete-patterns
|
|
|
|
- -rtsopts
|
|
|
|
- -with-rtsopts=-N
|
2020-11-12 18:59:04 +03:00
|
|
|
- -with-rtsopts=-T
|
2019-09-23 17:46:21 +03:00
|
|
|
dependencies:
|
2021-07-31 05:27:05 +03:00
|
|
|
# - call-stack
|
|
|
|
- directory >= 1.3 && < 1.4
|
2020-05-04 20:19:48 +03:00
|
|
|
- monomer
|
2021-07-31 05:27:05 +03:00
|
|
|
# - hedgehog >= 1.0 && < 1.1
|
|
|
|
- hspec >= 2.4 && < 3.0
|
|
|
|
- HUnit >= 1.6 && < 1.7
|
|
|
|
- silently >= 1.2 && < 1.3
|