2021-02-04 15:57:15 +03:00
|
|
|
name: monomer
|
2024-01-08 04:35:36 +03:00
|
|
|
version: 1.6.0.1
|
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:
|
2021-08-29 03:37:10 +03:00
|
|
|
- README.md
|
|
|
|
- ChangeLog.md
|
2019-09-23 17:46:21 +03:00
|
|
|
|
|
|
|
# Metadata used when publishing your package
|
2021-08-09 17:42:03 +03:00
|
|
|
synopsis: A GUI library for writing native Haskell applications.
|
2021-05-29 02:08:01 +03:00
|
|
|
category: GUI
|
2021-08-09 17:42:03 +03:00
|
|
|
description: |
|
|
|
|
Monomer is an easy to use, cross platform, GUI library for writing native
|
|
|
|
Haskell applications.
|
2021-07-19 03:36:16 +03:00
|
|
|
|
2021-08-08 17:51:30 +03:00
|
|
|
It provides a framework similar to the Elm Architecture, allowing the creation
|
|
|
|
of GUIs using an extensible set of widgets with pure Haskell.
|
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:
|
2021-08-29 03:37:10 +03:00
|
|
|
- OverloadedStrings
|
2019-09-23 17:46:21 +03:00
|
|
|
|
|
|
|
dependencies:
|
2024-01-08 04:35:36 +03:00
|
|
|
- async >= 2.1 && < 2.4
|
|
|
|
- attoparsec >= 0.12 && < 0.16
|
2021-08-29 03:37:10 +03:00
|
|
|
- base >= 4.11 && < 5
|
2024-01-08 04:35:36 +03:00
|
|
|
- bytestring >= 0.10 && < 0.20
|
2021-08-29 03:37:10 +03:00
|
|
|
- bytestring-to-vector >= 0.3 && < 0.4
|
2024-01-08 04:35:36 +03:00
|
|
|
- containers >= 0.5.11 && < 0.8
|
|
|
|
- data-default >= 0.5 && < 0.9
|
|
|
|
- exceptions >= 0.10 && < 0.13
|
|
|
|
- extra >= 1.6 && < 1.10
|
2023-02-24 20:14:08 +03:00
|
|
|
- foreign-store >= 0.2 && < 1.0
|
2021-08-29 03:37:10 +03:00
|
|
|
- formatting >= 6.0 && < 8.0
|
|
|
|
- http-client >= 0.6 && < 0.9
|
|
|
|
- JuicyPixels >= 3.2.9 && < 3.5
|
2022-01-23 18:45:06 +03:00
|
|
|
- lens >= 4.16 && < 6
|
2023-11-28 02:03:07 +03:00
|
|
|
- mtl >= 2.1 && < 2.4
|
2022-09-11 13:28:02 +03:00
|
|
|
- nanovg >= 0.8.1 && < 1.0
|
2024-01-08 04:35:36 +03:00
|
|
|
- OpenGLRaw >= 3.3 && < 3.5
|
|
|
|
- process >= 1.6 && < 1.8
|
|
|
|
- sdl2 >= 2.5.0 && < 2.7
|
|
|
|
- stm >= 2.5 && < 2.7
|
|
|
|
- text >= 1.2 && < 3
|
|
|
|
- text-show >= 3.7 && < 3.14
|
|
|
|
- time >= 1.8 && < 1.20
|
|
|
|
- transformers >= 0.5 && < 0.8
|
|
|
|
- vector >= 0.12 && < 0.20
|
|
|
|
- wreq >= 0.5.2 && < 0.7
|
2019-09-23 17:46:21 +03:00
|
|
|
|
2022-10-27 19:42:44 +03:00
|
|
|
flags:
|
|
|
|
examples:
|
|
|
|
default: False
|
|
|
|
manual: True
|
|
|
|
|
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:
|
2021-08-29 03:37:10 +03:00
|
|
|
- fontmanager.h
|
2019-09-23 17:46:21 +03:00
|
|
|
c-sources:
|
2021-08-29 03:37:10 +03:00
|
|
|
- cbits/dpi.c
|
|
|
|
- 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:
|
2021-08-29 03:37:10 +03:00
|
|
|
- -fPIC
|
2019-09-23 17:46:21 +03:00
|
|
|
ghc-options:
|
2021-08-29 03:37:10 +03:00
|
|
|
- -fwarn-incomplete-patterns
|
2022-10-27 21:08:55 +03:00
|
|
|
pkg-config-dependencies: glew
|
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:
|
2022-10-27 19:42:44 +03:00
|
|
|
dev-test-app:
|
2021-02-04 15:57:15 +03:00
|
|
|
main: Main.hs
|
2022-10-27 19:42:44 +03:00
|
|
|
source-dirs: dev-test-app
|
|
|
|
dependencies:
|
|
|
|
- monomer
|
2019-09-23 17:46:21 +03:00
|
|
|
ghc-options:
|
2021-08-29 03:37:10 +03:00
|
|
|
- -threaded
|
2022-10-27 19:42:44 +03:00
|
|
|
|
|
|
|
todo:
|
|
|
|
main: Main.hs
|
|
|
|
source-dirs: examples/todo
|
|
|
|
when:
|
|
|
|
- condition: flag(examples)
|
|
|
|
then:
|
|
|
|
buildable: True
|
|
|
|
else:
|
|
|
|
buildable: False
|
2019-09-23 17:46:21 +03:00
|
|
|
dependencies:
|
2021-08-29 03:37:10 +03:00
|
|
|
- monomer
|
2022-10-27 19:42:44 +03:00
|
|
|
ghc-options:
|
|
|
|
- -threaded
|
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
|
2022-10-27 19:42:44 +03:00
|
|
|
when:
|
|
|
|
- condition: flag(examples)
|
|
|
|
then:
|
|
|
|
buildable: True
|
|
|
|
else:
|
|
|
|
buildable: False
|
2021-02-04 15:57:15 +03:00
|
|
|
dependencies:
|
2022-01-23 18:45:06 +03:00
|
|
|
- aeson >= 1.4 && < 2.3
|
2021-08-29 03:37:10 +03:00
|
|
|
- monomer
|
|
|
|
- wreq >= 0.5.2 && < 0.6
|
2022-10-27 19:42:44 +03:00
|
|
|
ghc-options:
|
|
|
|
- -threaded
|
2021-02-04 15:57:15 +03:00
|
|
|
|
2021-03-12 16:38:38 +03:00
|
|
|
ticker:
|
|
|
|
main: Main.hs
|
|
|
|
source-dirs: examples/ticker
|
2022-10-27 19:42:44 +03:00
|
|
|
when:
|
|
|
|
- condition: flag(examples)
|
|
|
|
then:
|
|
|
|
buildable: True
|
|
|
|
else:
|
|
|
|
buildable: False
|
2021-03-12 16:38:38 +03:00
|
|
|
dependencies:
|
2022-01-23 18:45:06 +03:00
|
|
|
- aeson >= 1.4 && < 2.3
|
2021-08-29 03:37:10 +03:00
|
|
|
- monomer
|
|
|
|
- websockets >= 0.12 && < 0.13
|
2022-01-23 18:45:06 +03:00
|
|
|
- wuss >= 1.1 && < 2.3
|
2022-10-27 19:42:44 +03:00
|
|
|
ghc-options:
|
|
|
|
- -threaded
|
2021-03-12 16:38:38 +03:00
|
|
|
|
2021-08-09 06:10:32 +03:00
|
|
|
generative:
|
2021-04-27 07:03:36 +03:00
|
|
|
main: Main.hs
|
2021-08-09 06:10:32 +03:00
|
|
|
source-dirs: examples/generative
|
2022-10-27 19:42:44 +03:00
|
|
|
when:
|
|
|
|
- condition: flag(examples)
|
|
|
|
then:
|
|
|
|
buildable: True
|
|
|
|
else:
|
|
|
|
buildable: False
|
2021-04-27 07:03:36 +03:00
|
|
|
dependencies:
|
2021-08-29 03:37:10 +03:00
|
|
|
- monomer
|
|
|
|
- random >= 1.1 && < 1.3
|
2022-10-27 19:42:44 +03:00
|
|
|
ghc-options:
|
|
|
|
- -threaded
|
2021-04-27 07:03:36 +03:00
|
|
|
|
2021-09-23 00:27:53 +03:00
|
|
|
opengl:
|
|
|
|
main: Main.hs
|
|
|
|
source-dirs: examples/opengl
|
2022-10-27 19:42:44 +03:00
|
|
|
when:
|
|
|
|
- condition: flag(examples)
|
|
|
|
then:
|
|
|
|
buildable: True
|
|
|
|
else:
|
|
|
|
buildable: False
|
2021-09-23 00:27:53 +03:00
|
|
|
dependencies:
|
|
|
|
- monomer
|
|
|
|
- random >= 1.1 && < 1.3
|
2022-10-27 19:42:44 +03:00
|
|
|
ghc-options:
|
|
|
|
- -threaded
|
2021-09-23 00:27:53 +03:00
|
|
|
|
2021-06-08 06:22:21 +03:00
|
|
|
tutorial:
|
|
|
|
main: Main.hs
|
|
|
|
source-dirs: examples/tutorial
|
2022-10-27 19:42:44 +03:00
|
|
|
when:
|
|
|
|
- condition: flag(examples)
|
|
|
|
then:
|
|
|
|
buildable: True
|
|
|
|
else:
|
|
|
|
buildable: False
|
2021-06-08 06:22:21 +03:00
|
|
|
dependencies:
|
2021-08-29 03:37:10 +03:00
|
|
|
- monomer
|
|
|
|
- random >= 1.1 && < 1.3
|
2022-10-27 19:42:44 +03:00
|
|
|
ghc-options:
|
|
|
|
- -threaded
|
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-08-29 03:37:10 +03:00
|
|
|
- -fwarn-incomplete-patterns
|
2019-09-23 17:46:21 +03:00
|
|
|
dependencies:
|
2021-08-29 03:37:10 +03:00
|
|
|
- monomer
|
|
|
|
- hspec >= 2.4 && < 3.0
|