aboutsummaryrefslogtreecommitdiff
path: root/daffm.cabal
blob: 7a1eeecc5747ec935c27bfc8cc33f1b68740f82c (plain) (blame)
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
81
82
83
84
85
cabal-version:   3.0

name:            daffm
version:         0.1.0.0
license:         MIT
author:          Akshay Nair <phenax5@gmail.com>
maintainer:      Akshay Nair <phenax5@gmail.com>
build-type:      Simple
synopsis:        Dumb as fuck file manager
description:     Dumb as fuck file manager

source-repository head
  type:     git
  location: https://github.com/makedaft/daffm.git

common common-config
  default-extensions:
    RankNTypes
    NamedFieldPuns
    OverloadedStrings
    ViewPatterns
    LambdaCase
    QuasiQuotes
    MultiWayIf
    TemplateHaskell
  default-language: Haskell2010
  build-depends:
    array,
    base,
    brick == 2.4,
    tomland <= 1.3.3.3,
    containers <= 0.8,
    data-default <= 0.8.0.1,
    directory <= 1.3.9.0,
    filepath <= 1.5.4.0,
    mtl == 2.3.1,
    process <= 1.6.26.1,
    temporary,
    text,
    text-zipper <= 0.13,
    unix-compat <= 0.7.4.1,
    vector,
    vty

common warnings
  ghc-options:
    -Wall -Wincomplete-record-updates -Wincomplete-uni-patterns
    -Wunused-foralls -Wextra -Wno-unused-do-bind -Wname-shadowing
    -fwarn-tabs -fprint-explicit-foralls -fprint-explicit-kinds
    -threaded -rtsopts -with-rtsopts=-N

executable daffm
  import: common-config, warnings
  hs-source-dirs: exe
  main-is: Main.hs
  build-depends: lib-daffm

library lib-daffm
  import: common-config, warnings
  hs-source-dirs: lib
  exposed-modules:
    Daffm
    Daffm.Action.Cmdline
    Daffm.Action.Commands
    Daffm.Action.Core
    Daffm.Attrs
    Daffm.Configuration
    Daffm.Event
    Daffm.State
    Daffm.Types
    Daffm.Utils
    Daffm.View

test-suite specs
  import: common-config, warnings
  type: exitcode-stdio-1.0
  hs-source-dirs: specs
  main-is: Main.hs
  ghc-options: -Wno-name-shadowing
  other-modules:
    Specs.FooSpec
  build-depends:
    lib-daffm,
    template-haskell,
    hspec