1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
name: reflection-examples
version: 0.1
license: BSD3
license-file: LICENSE
author: Edward A. Kmett, Elliott Hird, Oleg Kiselyov and Chung-chieh Shan
maintainer: Edward A. Kmett <ekmett@gmail.com>
stability: experimental
homepage: http://github.com/ekmett/reflection
bug-reports: http://github.com/ekmett/reflection/issues
category: Data, Reflection, Dependent Types
synopsis: Examples of reflection
description: Examples of reflection.
copyright: 2009-2013 Edward A. Kmett,
2012 Elliott Hird,
2004 Oleg Kiselyov and Chung-chieh Shan
build-type: Simple
cabal-version: >= 1.10
tested-with: GHC == 8.0.2
, GHC == 8.2.2
, GHC == 8.4.4
, GHC == 8.6.5
, GHC == 8.8.4
, GHC == 8.10.7
, GHC == 9.0.2
, GHC == 9.2.8
, GHC == 9.4.5
, GHC == 9.6.2
flag examples
default: True
library
if !flag(examples)
buildable: False
exposed-modules: Constraints
Monoid
build-depends: base >= 4.9 && < 5,
constraints,
newtype-generics >= 0.5.3,
reflection,
semigroups,
tagged
hs-source-dirs: .
ghc-options: -Wall
if impl(ghc >= 8.6)
ghc-options: -Wno-star-is-type
default-language: Haskell2010
executable reflection-from-json
if !flag(examples)
buildable: False
main-is: FromJSON.hs
build-depends:
-- TODO: Eventually, we should bump the lower version
-- bounds to >=2 so that we can remove some CPP in FromJSON.
aeson >= 1 && < 2.3,
base >= 4.9 && < 5,
microlens,
microlens-aeson >= 2.5.1,
reflection,
semigroups,
tagged,
text
hs-source-dirs: .
ghc-options: -Wall -threaded -rtsopts
default-language: Haskell2010
executable reflection-reader-like
if !flag(examples)
buildable: False
main-is: ReaderLike.hs
build-depends: base >= 4.9 && < 5,
reflection,
tagged
hs-source-dirs: .
ghc-options: -Wall -threaded -rtsopts
if impl(ghc >= 8.6)
ghc-options: -Wno-star-is-type
default-language: Haskell2010
|