mirror of
https://github.com/aelve/guide.git
synced 2024-11-22 11:33:34 +03:00
Migrate to hpack (#377)
* Migrate to hpack * Small fixes to hpack * Remove exposed modules * Get rid of a warning * Unify default-extensions * exposed-modules
This commit is contained in:
parent
8c5cec5aad
commit
b5e2bb4d99
3
.gitignore
vendored
3
.gitignore
vendored
@ -24,6 +24,9 @@ cabal.config
|
||||
*#
|
||||
*.lock
|
||||
|
||||
# hpack
|
||||
*.cabal
|
||||
|
||||
|
||||
# IDE/support
|
||||
.idea/
|
||||
|
270
back/guide.cabal
270
back/guide.cabal
@ -1,270 +0,0 @@
|
||||
name: guide
|
||||
version: 1.0
|
||||
synopsis: An advanced wiki engine
|
||||
description:
|
||||
An advanced wiki engine powering <guide.aelve.com>.
|
||||
homepage: http://github.com/aelve/guide
|
||||
bug-reports: http://github.com/aelve/guide/issues
|
||||
license: BSD3
|
||||
license-file: LICENSE
|
||||
author: Aelve
|
||||
maintainer: yom@artyom.me
|
||||
-- copyright:
|
||||
category: Web
|
||||
tested-with: GHC == 8.4
|
||||
extra-source-files:
|
||||
-- Whatever, this won't ever be installed from a .tar package anyway so I
|
||||
-- won't bother updating this section every time I add a new directory.
|
||||
--
|
||||
-- data-files:
|
||||
-- static/*.svg
|
||||
-- static/*.css
|
||||
-- static/*.md
|
||||
-- static/*.html
|
||||
-- static/*.js
|
||||
-- static/*.ico
|
||||
-- templates/*.widget
|
||||
-- templates/utils/*.widget
|
||||
cabal-version: >=1.24
|
||||
build-type: Custom
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: git://github.com/aelve/guide.git
|
||||
|
||||
custom-setup
|
||||
setup-depends: base
|
||||
, process
|
||||
, Cabal
|
||||
|
||||
executable guide
|
||||
main-is: Main.hs
|
||||
build-depends: base
|
||||
, guide
|
||||
ghc-options: -Wall -Wno-unused-do-bind -Wmissing-export-lists
|
||||
-threaded "-with-rtsopts=-T -N"
|
||||
hs-source-dirs: src/site
|
||||
default-language: Haskell2010
|
||||
|
||||
library
|
||||
exposed-modules:
|
||||
Guide.App
|
||||
Guide.Api
|
||||
Guide.Api.Methods
|
||||
Guide.Api.Server
|
||||
Guide.Api.Types
|
||||
Guide.Api.Error
|
||||
Guide.Api.Utils
|
||||
Guide.Api.Guider
|
||||
Guide.Cli
|
||||
Guide.Database
|
||||
Guide.Database.Add
|
||||
Guide.Database.Connection
|
||||
Guide.Database.Get
|
||||
Guide.Database.Schema
|
||||
Guide.Database.Set
|
||||
Guide.Database.Types
|
||||
Guide.Database.Utils
|
||||
Guide.Logger
|
||||
Guide.Logger.Types
|
||||
Guide.Logger.Functions
|
||||
Guide.Logger.Run
|
||||
Guide.Main
|
||||
Guide.ServerStuff
|
||||
Guide.Session
|
||||
Guide.Config
|
||||
Guide.State
|
||||
Guide.Types
|
||||
Guide.Types.Hue
|
||||
Guide.Types.Core
|
||||
Guide.Types.Edit
|
||||
Guide.Types.Analytics
|
||||
Guide.Types.User
|
||||
Guide.Types.Session
|
||||
Guide.Handlers
|
||||
Guide.Utils
|
||||
Guide.Diff
|
||||
Guide.Diff.Tokenize
|
||||
Guide.Diff.Merge
|
||||
Guide.Markdown
|
||||
Guide.Matomo
|
||||
Guide.Archival
|
||||
Guide.Search
|
||||
Guide.JS
|
||||
Guide.Views
|
||||
Guide.Views.Page
|
||||
Guide.Views.Auth
|
||||
Guide.Views.Auth.Register
|
||||
Guide.Views.Auth.Login
|
||||
Guide.Views.Item
|
||||
Guide.Views.Category
|
||||
Guide.Views.Utils
|
||||
Guide.Views.Utils.Input
|
||||
Guide.Routes
|
||||
Imports
|
||||
build-depends: acid-state
|
||||
, aeson
|
||||
, aeson-pretty
|
||||
, async
|
||||
, base < 5
|
||||
, base-prelude
|
||||
, bytestring
|
||||
, cereal
|
||||
, cmark == 0.5.*
|
||||
, cmark-highlight == 0.2.*
|
||||
, cmark-sections == 0.3.*
|
||||
, containers >= 0.5
|
||||
, contravariant
|
||||
, data-default >= 0.5
|
||||
, deepseq >= 1.2.0.0
|
||||
, df1
|
||||
, di
|
||||
, di-core
|
||||
, di-monad
|
||||
, digestive-functors
|
||||
, directory >= 1.2
|
||||
, exceptions
|
||||
, extra
|
||||
, feed == 1.0.*
|
||||
, filemanip == 0.3.6.*
|
||||
, filepath
|
||||
, fmt
|
||||
, friendly-time == 0.4.*
|
||||
, generics-eot
|
||||
, gitrev
|
||||
, hashable
|
||||
, hasql
|
||||
, hasql-transaction
|
||||
, http-api-data
|
||||
, http-client
|
||||
, http-client-tls
|
||||
, http-types
|
||||
, hvect
|
||||
, ilist
|
||||
, insert-ordered-containers
|
||||
, iproute == 1.7.*
|
||||
, lucid >= 2.9.5 && < 3
|
||||
, megaparsec == 6.*
|
||||
, microlens
|
||||
, microlens-platform >= 0.3.2
|
||||
, mmorph == 1.*
|
||||
, mtl >= 2.1.1
|
||||
, named
|
||||
, neat-interpolation == 0.3.*
|
||||
, network
|
||||
, network-uri
|
||||
, optparse-applicative
|
||||
, patches-vector
|
||||
, profunctors
|
||||
, random >= 1.1
|
||||
, raw-strings-qq
|
||||
, reroute
|
||||
, safe
|
||||
, safecopy
|
||||
, safecopy-migrate == 0.2.*
|
||||
, say
|
||||
, scrypt
|
||||
, servant
|
||||
, servant-server
|
||||
, servant-swagger
|
||||
, servant-swagger-ui
|
||||
, shortcut-links >= 0.4.2
|
||||
, signal
|
||||
, split
|
||||
, Spock
|
||||
, Spock-digestive
|
||||
, Spock-lucid
|
||||
, stache-plus == 0.1.*
|
||||
, swagger2
|
||||
, template-haskell
|
||||
, text
|
||||
, th-abstraction
|
||||
, time >= 1.5
|
||||
, to
|
||||
, transformers
|
||||
, uniplate
|
||||
, utf8-string
|
||||
, vector
|
||||
, wai
|
||||
, wai-cors
|
||||
, wai-middleware-static
|
||||
, warp
|
||||
, xml-conduit
|
||||
, xml-types
|
||||
, xss-sanitize
|
||||
ghc-options: -Wall -Wno-unused-do-bind -Wmissing-export-lists
|
||||
hs-source-dirs: src
|
||||
default-language: Haskell2010
|
||||
default-extensions: MultiWayIf
|
||||
, ViewPatterns
|
||||
, RecordWildCards
|
||||
, TupleSections
|
||||
, LambdaCase
|
||||
, RankNTypes
|
||||
, MultiParamTypeClasses
|
||||
, FunctionalDependencies
|
||||
, DeriveFunctor
|
||||
, DeriveTraversable
|
||||
, DeriveGeneric
|
||||
, TypeApplications
|
||||
, NoImplicitPrelude
|
||||
, ConstraintKinds
|
||||
, InstanceSigs
|
||||
, DerivingStrategies
|
||||
, TemplateHaskellQuotes
|
||||
, ScopedTypeVariables
|
||||
|
||||
other-modules: Paths_guide
|
||||
autogen-modules: Paths_guide
|
||||
|
||||
test-suite tests
|
||||
main-is: Main.hs
|
||||
other-modules:
|
||||
ApiSpec
|
||||
LogSpec
|
||||
MarkdownSpec
|
||||
MergeSpec
|
||||
Selenium
|
||||
WebSpec
|
||||
type: exitcode-stdio-1.0
|
||||
build-depends: QuickCheck < 3
|
||||
, aeson
|
||||
, async
|
||||
, base < 5
|
||||
, bytestring
|
||||
, cmark
|
||||
, cmark-sections
|
||||
, containers
|
||||
, directory
|
||||
, exceptions
|
||||
, guide
|
||||
, hspec < 3
|
||||
, hspec-expectations
|
||||
, hspec-webdriver < 1.3
|
||||
, http-client
|
||||
, http-conduit
|
||||
, http-types
|
||||
, lucid < 3
|
||||
, monad-loops < 0.5
|
||||
, network-uri
|
||||
, quickcheck-text < 0.2
|
||||
, regex
|
||||
, tagsoup < 1
|
||||
, text
|
||||
, temporary
|
||||
, webdriver
|
||||
, yaml
|
||||
hs-source-dirs: tests
|
||||
default-language: Haskell2010
|
||||
ghc-options: -Wall -Wno-unused-do-bind -Wmissing-export-lists
|
||||
default-extensions: MultiWayIf
|
||||
, ViewPatterns
|
||||
, RecordWildCards
|
||||
, TupleSections
|
||||
, LambdaCase
|
||||
, RankNTypes
|
||||
, MultiParamTypeClasses
|
||||
, FunctionalDependencies
|
||||
, DeriveFunctor
|
||||
, DeriveTraversable
|
||||
, DeriveGeneric
|
183
back/package.yaml
Normal file
183
back/package.yaml
Normal file
@ -0,0 +1,183 @@
|
||||
name: guide
|
||||
version: '1.0.0'
|
||||
synopsis: An advanced wiki engine
|
||||
description: An advanced wiki engine powering <guide.aelve.com>.
|
||||
|
||||
category: Web
|
||||
author: Aelve
|
||||
maintainer: artyom@aelve.com
|
||||
license: BSD3
|
||||
|
||||
homepage: https://github.com/aelve/guide
|
||||
git: git://github.com/aelve/guide.git
|
||||
bug-reports: https://github.com/aelve/guide/issues
|
||||
|
||||
ghc-options:
|
||||
- -Wall
|
||||
- -Wno-unused-do-bind
|
||||
- -Wmissing-export-lists
|
||||
# https://github.com/commercialhaskell/stack/issues/3918
|
||||
- -optP-Wno-nonportable-include-path
|
||||
|
||||
default-extensions:
|
||||
- MultiWayIf
|
||||
- ViewPatterns
|
||||
- RecordWildCards
|
||||
- TupleSections
|
||||
- LambdaCase
|
||||
- RankNTypes
|
||||
- MultiParamTypeClasses
|
||||
- FunctionalDependencies
|
||||
- DeriveFunctor
|
||||
- DeriveTraversable
|
||||
- DeriveGeneric
|
||||
- TypeApplications
|
||||
- NoImplicitPrelude
|
||||
- ConstraintKinds
|
||||
- InstanceSigs
|
||||
- DerivingStrategies
|
||||
- TemplateHaskellQuotes
|
||||
- ScopedTypeVariables
|
||||
|
||||
library:
|
||||
source-dirs: src
|
||||
# You don't need to add modules here, all modules will be exposed automatically.
|
||||
#
|
||||
# exposed-modules:
|
||||
dependencies:
|
||||
- acid-state
|
||||
- aeson
|
||||
- aeson-pretty
|
||||
- async
|
||||
- base <5
|
||||
- base-prelude
|
||||
- bytestring
|
||||
- cereal
|
||||
- cmark ==0.5.*
|
||||
- cmark-highlight ==0.2.*
|
||||
- cmark-sections ==0.3.*
|
||||
- containers >=0.5
|
||||
- contravariant
|
||||
- data-default >=0.5
|
||||
- deepseq >=1.2.0.0
|
||||
- df1
|
||||
- di
|
||||
- di-core
|
||||
- di-monad
|
||||
- digestive-functors
|
||||
- directory >=1.2
|
||||
- exceptions
|
||||
- extra
|
||||
- feed ==1.0.*
|
||||
- filemanip ==0.3.6.*
|
||||
- filepath
|
||||
- fmt
|
||||
- friendly-time ==0.4.*
|
||||
- generics-eot
|
||||
- gitrev
|
||||
- hashable
|
||||
- hasql
|
||||
- hasql-transaction
|
||||
- http-api-data
|
||||
- http-client
|
||||
- http-client-tls
|
||||
- http-types
|
||||
- hvect
|
||||
- ilist
|
||||
- insert-ordered-containers
|
||||
- iproute ==1.7.*
|
||||
- lucid >=2.9.5 && <3
|
||||
- megaparsec ==6.*
|
||||
- microlens
|
||||
- microlens-platform >=0.3.2
|
||||
- mmorph ==1.*
|
||||
- mtl >=2.1.1
|
||||
- named
|
||||
- neat-interpolation ==0.3.*
|
||||
- network
|
||||
- network-uri
|
||||
- optparse-applicative
|
||||
- patches-vector
|
||||
- profunctors
|
||||
- random >=1.1
|
||||
- raw-strings-qq
|
||||
- reroute
|
||||
- safe
|
||||
- safecopy
|
||||
- safecopy-migrate ==0.2.*
|
||||
- say
|
||||
- scrypt
|
||||
- servant
|
||||
- servant-server
|
||||
- servant-swagger
|
||||
- servant-swagger-ui
|
||||
- shortcut-links >=0.4.2
|
||||
- signal
|
||||
- split
|
||||
- Spock
|
||||
- Spock-digestive
|
||||
- Spock-lucid
|
||||
- stache-plus ==0.1.*
|
||||
- swagger2
|
||||
- template-haskell
|
||||
- text
|
||||
- th-abstraction
|
||||
- time >=1.5
|
||||
- to
|
||||
- transformers
|
||||
- uniplate
|
||||
- utf8-string
|
||||
- vector
|
||||
- wai
|
||||
- wai-cors
|
||||
- wai-middleware-static
|
||||
- warp
|
||||
- xml-conduit
|
||||
- xml-types
|
||||
- xss-sanitize
|
||||
|
||||
executables:
|
||||
guide:
|
||||
main: Main.hs
|
||||
source-dirs: src/site
|
||||
ghc-options:
|
||||
- -threaded
|
||||
# See https://github.com/sol/hpack/issues/182#issuecomment-310434881 for
|
||||
# the explanation of the quoting situation here.
|
||||
- '"-with-rtsopts=-T -N"'
|
||||
dependencies:
|
||||
- base
|
||||
- guide
|
||||
|
||||
tests:
|
||||
tests:
|
||||
main: Main.hs
|
||||
source-dirs: tests
|
||||
dependencies:
|
||||
- QuickCheck <3
|
||||
- aeson
|
||||
- async
|
||||
- base <5
|
||||
- bytestring
|
||||
- cmark
|
||||
- cmark-sections
|
||||
- containers
|
||||
- directory
|
||||
- exceptions
|
||||
- guide
|
||||
- hspec <3
|
||||
- hspec-expectations
|
||||
- hspec-webdriver <1.3
|
||||
- http-client
|
||||
- http-conduit
|
||||
- http-types
|
||||
- lucid <3
|
||||
- monad-loops <0.5
|
||||
- network-uri
|
||||
- quickcheck-text <0.2
|
||||
- regex
|
||||
- tagsoup <1
|
||||
- text
|
||||
- temporary
|
||||
- webdriver
|
||||
- yaml
|
Loading…
Reference in New Issue
Block a user