Skip to content

Commit

Permalink
Apply cabal-fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
waddlaw committed Feb 19, 2021
1 parent c5b9bf7 commit 3b6ccc1
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 81 deletions.
42 changes: 24 additions & 18 deletions wai-middleware-webauthn/demo/demo.cabal
Original file line number Diff line number Diff line change
@@ -1,34 +1,40 @@
cabal-version: 2.4
cabal-version: 2.4

-- Initial package description 'demo.cabal' generated by 'cabal init'. For
-- further documentation, see http://haskell.org/cabal/users-guide/

name: demo
version: 0.1.0.0
name: demo
version: 0.1.0.0

-- synopsis:
-- description:
-- bug-reports:
-- license:
license-file: LICENSE
author: Fumiaki Kinoshita
maintainer: [email protected]
license-file: LICENSE
author: Fumiaki Kinoshita
maintainer: [email protected]

-- copyright:
-- category:
-- extra-source-files: CHANGELOG.md
data-files:
index.html
data-files: index.html

executable demo
main-is: Main.hs
main-is: Main.hs

-- other-extensions:
ghc-options: -threaded
build-depends: base >=4.11.0.0
ghc-options: -threaded
build-depends:
, aeson
, base >=4.11.0.0
, bytestring
, http-types
, wai
, wai-middleware-webauthn
, warp
, warp-tls
, wai-middleware-webauthn
, wai
, http-types
, bytestring
, yaml
, aeson

-- hs-source-dirs:
other-modules: Paths_demo
default-language: Haskell2010
other-modules: Paths_demo
default-language: Haskell2010
50 changes: 27 additions & 23 deletions wai-middleware-webauthn/wai-middleware-webauthn.cabal
Original file line number Diff line number Diff line change
@@ -1,41 +1,45 @@
cabal-version: 2.4
cabal-version: 2.4

-- Initial package description 'webauthn-proxy.cabal' generated by 'cabal
-- init'. For further documentation, see
-- http://haskell.org/cabal/users-guide/

name: wai-middleware-webauthn
version: 0.1.0.0
name: wai-middleware-webauthn
version: 0.1.0.0

-- synopsis:
-- description:
-- bug-reports:
-- license:
license-file: LICENSE
author: Fumiaki Kinoshita
maintainer: [email protected]
license-file: LICENSE
author: Fumiaki Kinoshita
maintainer: [email protected]

-- copyright:
-- category:
-- extra-source-files: CHANGELOG.md
data-files:
lib.js
data-files: lib.js

library
build-depends: base == 4.*
, wai
, yaml
, webauthn
, text
build-depends:
, aeson
, base >=4 && <5
, base64-bytestring
, bytestring
, cborg
, cryptonite
, hashable
, http-types
, serialise
, base64-bytestring
, aeson
, text
, unordered-containers
, http-types
, cryptonite
, cborg
, wai
, webauthn
, x509-store
exposed-modules: Network.Wai.Middleware.WebAuthn
ghc-options: -Wall
hs-source-dirs: src
default-language: Haskell2010
other-modules: Paths_wai_middleware_webauthn
, yaml

exposed-modules: Network.Wai.Middleware.WebAuthn
ghc-options: -Wall
hs-source-dirs: src
default-language: Haskell2010
other-modules: Paths_wai_middleware_webauthn
88 changes: 48 additions & 40 deletions webauthn.cabal
Original file line number Diff line number Diff line change
@@ -1,76 +1,84 @@
cabal-version: 2.4
cabal-version: 2.4

-- Initial package description 'webauthn.cabal' generated by 'cabal init'.
-- For further documentation, see http://haskell.org/cabal/users-guide/

name: webauthn
version: 0.0.2
synopsis: Web Authentication API
name: webauthn
version: 0.0.2
synopsis: Web Authentication API

-- description:
homepage: https://github.com/fumieval/webauthn
-- bug-reports:
license: BSD-3-Clause
license-file: LICENSE
author: Fumiaki Kinoshita, Sumit Raja <[email protected]>
maintainer: [email protected]
homepage: https://github.com/fumieval/webauthn
bug-reports: https://github.com/fumieval/webauthn/issues
license: BSD-3-Clause
license-file: LICENSE
author: Fumiaki Kinoshita, Sumit Raja <[email protected]>
maintainer: [email protected]

-- copyright:
category: Web
category: Web

-- extra-source-files: CHANGELOG.md

common base-common
build-depends:
base == 4.*
, x509-store
, bytestring
build-depends:
, aeson
, base >=4 && <5
, base64-bytestring
, bytestring
, errors
, aeson
, x509-store

library
import: base-common
import: base-common
exposed-modules:
WebAuthn
WebAuthn.Types
WebAuthn.AndroidSafetyNet
WebAuthn.FIDOU2F
WebAuthn.Packed
WebAuthn.Signature
WebAuthn.TPM
WebAuthn.AndroidSafetyNet
build-depends: base == 4.*
, containers
, cryptonite
WebAuthn.Types

build-depends:
, aeson
, asn1-encoding
, asn1-types
, base >=4 && <5
, base16-bytestring >=1.0.0.0 && <1.1.0.0
, base64-bytestring
, cborg
, cereal
, containers
, cryptonite
, hashable
, aeson
, asn1-types
, asn1-encoding
, memory
, serialise
, text
, transformers
, x509
, x509-validation
, memory
, serialise
, base16-bytestring >= 1.0.0.0 && < 1.1.0.0
, base64-bytestring
hs-source-dirs: src
ghc-options: -Wall
default-language: Haskell2010

hs-source-dirs: src
ghc-options: -Wall
default-language: Haskell2010
default-extensions:
DuplicateRecordFields
OverloadedStrings

test-suite test-webauthn
import: base-common
type: exitcode-stdio-1.0
main-is: Tests.hs
hs-source-dirs: test
default-language: Haskell2010
import: base-common
type: exitcode-stdio-1.0
main-is: Tests.hs
hs-source-dirs: test
default-language: Haskell2010
default-extensions:
QuasiQuotes
OverloadedStrings
QuasiQuotes

build-depends:
webauthn
, interpolate
, tasty
, tasty-hunit
, uri-bytestring
, uri-bytestring
, webauthn

0 comments on commit 3b6ccc1

Please sign in to comment.