Skip to content

Instantly share code, notes, and snippets.

@Icelandjack
Icelandjack / Binary.hs
Created Sep 1, 2017 — forked from ndmitchell/Binary.hs
Binary existentials
View Binary.hs
{-# LANGUAGE StaticPointers #-}
{-# LANGUAGE InstanceSigs #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE ScopedTypeVariables #-}
import Data.Binary
import Data.Typeable
import System.IO.Unsafe
import GHC.StaticPtr