Maj ghc 8.0 + add sock5 types

This commit is contained in:
Erèbe 2016-06-13 14:04:01 +02:00
parent dce0372c4b
commit 0bd70fd006
4 changed files with 11 additions and 12 deletions

View file

@ -6,8 +6,7 @@ module Main where
import Tunnel import Tunnel
import ClassyPrelude (ByteString, guard, readMay, import ClassyPrelude (ByteString, guard, readMay)
traceShowId)
import qualified Data.ByteString.Char8 as BC import qualified Data.ByteString.Char8 as BC
import Data.Maybe (fromMaybe) import Data.Maybe (fromMaybe)
import System.Console.CmdArgs import System.Console.CmdArgs

View file

@ -31,7 +31,6 @@ deriving instance Hashable N.SockAddr
data Protocol = UDP | TCP deriving (Show, Read) data Protocol = UDP | TCP deriving (Show, Read)
data UdpAppData = UdpAppData data UdpAppData = UdpAppData
{ appAddr :: N.SockAddr { appAddr :: N.SockAddr
, appSem :: MVar ByteString , appSem :: MVar ByteString

View file

@ -1,5 +1,5 @@
# This file was automatically generated by 'stack init' # This file was automatically generated by 'stack init'
# #
# Some commonly used options have been documented as comments in this file. # Some commonly used options have been documented as comments in this file.
# For advanced use and comprehensive documentation of the format, please see: # For advanced use and comprehensive documentation of the format, please see:
# http://docs.haskellstack.org/en/stable/yaml_configuration/ # http://docs.haskellstack.org/en/stable/yaml_configuration/
@ -7,7 +7,7 @@
# Resolver to choose a 'specific' stackage snapshot or a compiler version. # Resolver to choose a 'specific' stackage snapshot or a compiler version.
# A snapshot resolver dictates the compiler version and the set of packages # A snapshot resolver dictates the compiler version and the set of packages
# to be used for project dependencies. For example: # to be used for project dependencies. For example:
# #
# resolver: lts-3.5 # resolver: lts-3.5
# resolver: nightly-2015-09-21 # resolver: nightly-2015-09-21
# resolver: ghc-7.10.2 # resolver: ghc-7.10.2
@ -15,11 +15,11 @@
# resolver: # resolver:
# name: custom-snapshot # name: custom-snapshot
# location: "./custom-snapshot.yaml" # location: "./custom-snapshot.yaml"
resolver: lts-5.17 resolver: nightly-2016-06-12
# User packages to be built. # User packages to be built.
# Various formats can be used as shown in the example below. # Various formats can be used as shown in the example below.
# #
# packages: # packages:
# - some-directory # - some-directory
# - https://example.com/foo/bar/baz-0.0.2.tar.gz # - https://example.com/foo/bar/baz-0.0.2.tar.gz
@ -31,7 +31,7 @@ resolver: lts-5.17
# subdirs: # subdirs:
# - auto-update # - auto-update
# - wai # - wai
# #
# A package marked 'extra-dep: true' will only be built if demanded by a # A package marked 'extra-dep: true' will only be built if demanded by a
# non-dependency (i.e. a user package), and its test suites and benchmarks # non-dependency (i.e. a user package), and its test suites and benchmarks
# will not be run. This is useful for tweaking upstream packages. # will not be run. This is useful for tweaking upstream packages.
@ -49,18 +49,18 @@ extra-package-dbs: []
# Control whether we use the GHC we find on the path # Control whether we use the GHC we find on the path
# system-ghc: true # system-ghc: true
# #
# Require a specific version of stack, using version ranges # Require a specific version of stack, using version ranges
# require-stack-version: -any # Default # require-stack-version: -any # Default
# require-stack-version: ">=1.1" # require-stack-version: ">=1.1"
# #
# Override the architecture used by stack, especially useful on Windows # Override the architecture used by stack, especially useful on Windows
# arch: i386 # arch: i386
# arch: x86_64 # arch: x86_64
# #
# Extra directories used by stack for building # Extra directories used by stack for building
# extra-include-dirs: [/path/to/dir] # extra-include-dirs: [/path/to/dir]
# extra-lib-dirs: [/path/to/dir] # extra-lib-dirs: [/path/to/dir]
# #
# Allow a newer minor version of GHC than the snapshot specifies # Allow a newer minor version of GHC than the snapshot specifies
# compiler-check: newer-minor # compiler-check: newer-minor

View file

@ -28,6 +28,7 @@ library
, connection , connection
, hslogger , hslogger
, base64-bytestring >= 1.0 , base64-bytestring >= 1.0
, binary >= 0.7
default-language: Haskell2010 default-language: Haskell2010