File: Extension.hs-boot

package info (click to toggle)
haskell-tls 2.1.8-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,056 kB
  • sloc: haskell: 15,695; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 701 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
-- This is a breaker for cyclic imports:
--
-- - Network.TLS.Extension imports Network.TLS.Struct
-- - Network.TLS.Extension imports Network.TLS.Packet
--
-- - Network.TLS.Struct imports Network.TLS.Extension
--
-- - Network.TLS.Packet imports Network.TLS.Struct
--
-- Originally, ExtensionRaw was defined in Network.TLS.Struct and no
-- cyclic imports exist. It is moved into Network.TLS.Extension for
-- pretty-printing, so the cyclic imports happen.
module Network.TLS.Extension where

import Data.ByteString
import Data.Word

data ExtensionRaw = ExtensionRaw ExtensionID ByteString
instance Eq ExtensionRaw
instance Show ExtensionRaw

newtype ExtensionID = ExtensionID {fromExtensionID :: Word16}