uni-util-2.3.0.3: Utilities for the uniform workbench
Safe HaskellNone
LanguageHaskell2010

Util.BinaryExtras

Description

This module contains various extra Binary instances, for example ones which are particular GHC or uni-specific.

Synopsis

Documentation

hReadLtd Source #

Arguments

:: HasBinary a IO 
=> Int

the maximum number of characters

-> Handle 
-> IO (WithError a) 

Read something, but throw an exception if there is an attempt to read too many characters.

initialClockTime :: ClockTime Source #

Time this code was written. We bung this definition in here because this module needs GHC-specific access to ClockTime anyway.

Orphan instances

Monad m => HasBinary ClockTime m Source # 
Instance details