diff options
Diffstat (limited to 'src/Data/Sized.hs')
-rw-r--r-- | src/Data/Sized.hs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/Data/Sized.hs b/src/Data/Sized.hs deleted file mode 100644 index 0d3d5845..00000000 --- a/src/Data/Sized.hs +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | module Data.Sized where | ||
2 | |||
3 | import Data.Typeable | ||
4 | |||
5 | |||
6 | -- | Info about a type's serialized length. Either the length is known | ||
7 | -- independently of the value, or the length depends on the value. | ||
8 | data Size a | ||
9 | = VarSize (a -> Int) | ||
10 | | ConstSize !Int | ||
11 | deriving Typeable | ||
12 | |||
13 | class Sized a where size :: Size a | ||
14 | |||