Verified Commit 08eab3ab authored by Allele Dev's avatar Allele Dev

fix some build issues

parent d703bef2
-- This file has been generated from package.yaml by hpack version 0.17.1.
-- This file has been generated from package.yaml by hpack version 0.28.2.
--
-- see: https://github.com/sol/hpack
--
-- hash: a57db36447416378ee16cc46a30a221e63dad37bfe0cf296c1625cb1530de655
name: linear-socket
version: 0.3.3.2
version: 0.3.3.3
synopsis: Typed sockets
description: Please see README.md
license: GPL-3
license-file: LICENSE
author: Allele Dev
maintainer: [email protected]
copyright: Copyright (C) 2017 Allele Dev
copyright: Copyright (C) 2018 Allele Dev
category: Network
build-type: Simple
cabal-version: >= 1.10
extra-source-files:
changelog.md
CODE_OF_CONDUCT.md
......@@ -29,27 +30,16 @@ library
src
build-depends:
base >=4.7 && <5
, network
, bytestring
, network
exposed-modules:
Network.Typed.Socket
other-modules:
Paths_linear_socket
ghc-options: -Wall
default-extensions: NoImplicitPrelude BinaryLiterals LambdaCase TupleSections NegativeLiterals OverloadedStrings ApplicativeDo Arrows BangPatterns MagicHash UnboxedTuples DeriveFoldable DeriveFunctor DeriveTraversable GeneralizedNewtypeDeriving StandaloneDeriving DisambiguateRecordFields DuplicateRecordFields NamedFieldPuns NamedWildCards RecordWildCards OverloadedLabels FlexibleInstances FunctionalDependencies MultiParamTypeClasses ConstraintKinds DataKinds EmptyCase EmptyDataDecls GADTs KindSignatures PartialTypeSignatures RankNTypes RoleAnnotations ScopedTypeVariables TypeApplications TypeFamilies TypeFamilyDependencies TypeOperators TypeSynonymInstances
default-language: Haskell2010
executable linear-socket-hlint
main-is: HLint.hs
ghc-options: -w -threaded -rtsopts -with-rtsopts=-N
hs-source-dirs:
test
default-extensions: NoImplicitPrelude BinaryLiterals LambdaCase TupleSections NegativeLiterals OverloadedStrings ApplicativeDo Arrows BangPatterns MagicHash UnboxedTuples DeriveFoldable DeriveFunctor DeriveTraversable GeneralizedNewtypeDeriving StandaloneDeriving DisambiguateRecordFields DuplicateRecordFields NamedFieldPuns NamedWildCards RecordWildCards OverloadedLabels FlexibleInstances FunctionalDependencies MultiParamTypeClasses ConstraintKinds DataKinds EmptyCase EmptyDataDecls GADTs KindSignatures PartialTypeSignatures RankNTypes RoleAnnotations ScopedTypeVariables TypeApplications TypeFamilies TypeFamilyDependencies TypeOperators TypeSynonymInstances
build-depends:
base
, hlint >=1.9.27
other-modules:
Spec
default-language: Haskell2010
test-suite linear-socket-test
type: exitcode-stdio-1.0
hs-source-dirs:
......@@ -57,12 +47,12 @@ test-suite linear-socket-test
main-is: Spec.hs
build-depends:
base
, network
, hspec
, linear-socket
, network
, tasty-hspec
, hspec
other-modules:
HLint
Paths_linear_socket
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
default-extensions: NoImplicitPrelude BinaryLiterals LambdaCase TupleSections NegativeLiterals OverloadedStrings ApplicativeDo Arrows BangPatterns MagicHash UnboxedTuples DeriveFoldable DeriveFunctor DeriveTraversable GeneralizedNewtypeDeriving StandaloneDeriving DisambiguateRecordFields DuplicateRecordFields NamedFieldPuns NamedWildCards RecordWildCards OverloadedLabels FlexibleInstances FunctionalDependencies MultiParamTypeClasses ConstraintKinds DataKinds EmptyCase EmptyDataDecls GADTs KindSignatures PartialTypeSignatures RankNTypes RoleAnnotations ScopedTypeVariables TypeApplications TypeFamilies TypeFamilyDependencies TypeOperators TypeSynonymInstances
default-language: Haskell2010
name: linear-socket
version: '0.3.3.2'
version: '0.3.3.3'
synopsis: Typed sockets
description: Please see README.md
category: Network
author: Allele Dev
maintainer: [email protected]
copyright: Copyright (C) 2017 Allele Dev
copyright: Copyright (C) 2018 Allele Dev
license: GPL-3
git: https://gitlab.com/queertypes/linear-socket
default-extensions:
- NoImplicitPrelude
- BinaryLiterals
......@@ -59,25 +60,12 @@ library:
source-dirs: src
ghc-options: -Wall
exposed-modules:
- Network.Typed.Socket
dependencies:
- base >=4.7 && <5
- network
- bytestring
executables:
linear-socket-hlint:
main: HLint.hs
source-dirs: test
ghc-options:
- -w
- -threaded
- -rtsopts
- -with-rtsopts=-N
default-extensions: []
dependencies:
- base
- hlint >=1.9.27
tests:
linear-socket-test:
main: Spec.hs
......
-----------------------------------------------------------------------------
-- |
-- Module : Main (linear-socket-hlint)
-- Copyright : Copyright (C) 2017 Allele Dev
-- License : GPL-3 (see the file LICENSE)
-- Maintainer : [email protected]
-- Stability : provisional
-- Portability : portable
--
-- This module runs HLint on the linear-socket source tree.
--
-- Adapted from the lens project:
-- - https://github.com/ekmett/lens/blob/master/tests/hlint.hs
-----------------------------------------------------------------------------
module Main where
import Prelude
import Control.Monad
import Language.Haskell.HLint
import System.Environment
import System.Exit
main :: IO ()
main = do
args <- getArgs
hints <- hlint $ ["src", "--cpp-define=HLINT", "--cpp-ansi"] ++ args
unless (null hints) exitFailure
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment