Skip to content

Commit

Permalink
Restyled by cabal-fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and iphydf committed Sep 5, 2023
1 parent 020debd commit f25e7e1
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 66 deletions.
1 change: 0 additions & 1 deletion src/Network/Tox/C/CEnum.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE Trustworthy #-}
module Network.Tox.C.CEnum where

import Foreign.C.Types (CInt)
Expand Down
1 change: 0 additions & 1 deletion src/Network/Tox/C/Constants.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE StrictData #-}
{-# LANGUAGE Trustworthy #-}
module Network.Tox.C.Constants where

import Data.Word (Word32)
Expand Down
1 change: 0 additions & 1 deletion src/Network/Tox/C/Options.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE Safe #-}
{-# LANGUAGE StrictData #-}
module Network.Tox.C.Options where

Expand Down
1 change: 0 additions & 1 deletion src/Network/Tox/C/Tox.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE Safe #-}
{-# LANGUAGE StrictData #-}
-- | Public core API for Tox clients.
--
Expand Down
1 change: 0 additions & 1 deletion src/Network/Tox/C/Type.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE Safe #-}
{-# LANGUAGE StrictData #-}
module Network.Tox.C.Type where

Expand Down
1 change: 0 additions & 1 deletion src/Network/Tox/C/Version.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE StrictData #-}
{-# LANGUAGE Trustworthy #-}
module Network.Tox.C.Version where

import Data.Word (Word32)
Expand Down
1 change: 0 additions & 1 deletion src/Network/Tox/Types/Events.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{-# OPTIONS_GHC -fconstraint-solver-iterations=10 #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE Trustworthy #-}
module Network.Tox.Types.Events where

import qualified Data.ByteString as BS
Expand Down
1 change: 1 addition & 0 deletions tools/groupbot.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE StrictData #-}
Expand Down
109 changes: 50 additions & 59 deletions toxcore-c.cabal
Original file line number Diff line number Diff line change
@@ -1,102 +1,93 @@
name: toxcore-c
synopsis: Haskell bindings to the C reference implementation of Tox
version: 0.2.12
cabal-version: >= 1.10
license: GPL-3
license-file: LICENSE
build-type: Simple
author: iphy
maintainer: iphy
copyright: Copyright (c) 2016-2020 The TokTok Team
homepage: https://toktok.github.io
category: Network
name: toxcore-c
synopsis: Haskell bindings to the C reference implementation of Tox
version: 0.2.12
cabal-version: >=1.10
license: GPL-3
license-file: LICENSE
build-type: Simple
author: iphy
maintainer: iphy
copyright: Copyright (c) 2016-2020 The TokTok Team
homepage: https://toktok.github.io
category: Network
description:
Haskell bindings to the C reference implementation of Tox.
.
See <https://github.com/TokTok/c-toxcore>.

source-repository head
type: git
type: git
location: https://github.com/TokTok/hs-toxcore-c

library
default-language: Haskell2010
hs-source-dirs:
src
ghc-options:
-Wall
extra-libraries: toxcore
hs-source-dirs: src
ghc-options: -Wall
extra-libraries: toxcore
exposed-modules:
Network.Tox.C
Network.Tox.C.CEnum
Network.Tox.C.Constants
Network.Tox.C.Options
Network.Tox.C.Tox
Network.Tox.C.Type
Network.Tox.C.Version
Network.Tox.Types.Events
Network.Tox.C
Network.Tox.C.CEnum
Network.Tox.C.Constants
Network.Tox.C.Options
Network.Tox.C.Tox
Network.Tox.C.Type
Network.Tox.C.Version
Network.Tox.Types.Events

build-depends:
base < 5
, QuickCheck
base <5
, bytestring
, generic-arbitrary < 2
, msgpack-binary >= 0.0.16
, generic-arbitrary <2
, msgpack-binary >=0.0.16
, QuickCheck
, quickcheck-instances

executable groupbot
default-language: Haskell2010
hs-source-dirs:
tools
ghc-options:
-Wall
-Wno-unused-imports
extra-libraries: toxcore
main-is: groupbot.hs
hs-source-dirs: tools
ghc-options: -Wall -Wno-unused-imports
extra-libraries: toxcore
main-is: groupbot.hs
build-depends:
base < 5
, base16-bytestring >= 1
base <5
, base16-bytestring >=1
, bytestring
, directory
, text
, toxcore-c

executable gen-struct
default-language: Haskell2010
hs-source-dirs:
tools
ghc-options:
-Wall
-Wno-unused-imports
extra-libraries: toxcore
main-is: gen-struct.hs
hs-source-dirs: tools
ghc-options: -Wall -Wno-unused-imports
extra-libraries: toxcore
main-is: gen-struct.hs
build-depends:
base < 5
base <5
, bytestring
, data-fix
, groom
, schema >= 0.0.3
, schema >=0.0.3
, toxcore-c

test-suite testsuite
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs:
test
ghc-options:
-Wall
-Wno-unused-imports
main-is: testsuite.hs
type: exitcode-stdio-1.0
hs-source-dirs: test
ghc-options: -Wall -Wno-unused-imports
main-is: testsuite.hs
other-modules:
Network.Tox.C.ToxSpec
Network.Tox.Types.EventsSpec
Network.Tox.C.ToxSpec
Network.Tox.Types.EventsSpec

build-depends:
base < 5
, QuickCheck >= 2.9.1
base <5
, base16-bytestring
, bytestring
, cryptohash
, hspec
, msgpack-binary
, QuickCheck >=2.9.1
, saltine
, toxcore-c
, vector

0 comments on commit f25e7e1

Please sign in to comment.