Skip to content

Commit

Permalink
Move Language Extensions to Individual files
Browse files Browse the repository at this point in the history
  • Loading branch information
waddlaw committed Feb 19, 2021
1 parent 9583f5e commit 655055d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/WebAuthn.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DuplicateRecordFields #-}
-----------------------------------------------------------------------
-- |
-- Module : WebAuthn
Expand Down
3 changes: 2 additions & 1 deletion src/WebAuthn/AndroidSafetyNet.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DuplicateRecordFields #-}
module WebAuthn.AndroidSafetyNet (
decode,
verify
Expand Down
1 change: 1 addition & 0 deletions src/WebAuthn/Packed.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE OverloadedStrings #-}
module WebAuthn.Packed where

import Data.ByteString.Lazy (fromStrict)
Expand Down
1 change: 1 addition & 0 deletions src/WebAuthn/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
module WebAuthn.Types (
-- * Relying party
RelyingParty(..)
Expand Down
2 changes: 2 additions & 0 deletions test/Tests.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE RecordWildCards #-}
import WebAuthn
( registerCredential,
Expand Down
8 changes: 0 additions & 8 deletions webauthn.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ library
, x509-validation >=1.6 && <1.7

ghc-options: -Wall

default-extensions:
DuplicateRecordFields
OverloadedStrings

test-suite test-webauthn
import: base-common
Expand All @@ -69,7 +65,3 @@ test-suite test-webauthn
, tasty-hunit >=0.10 && <0.11
, uri-bytestring >=0.3 && <0.4
, webauthn

default-extensions:
OverloadedStrings
QuasiQuotes

0 comments on commit 655055d

Please sign in to comment.