-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move type-level bytes to bytezap; more PutC; cleanup
- Loading branch information
Showing
16 changed files
with
86 additions
and
341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{-# LANGUAGE UndecidableInstances #-} | ||
|
||
module Binrep.Test where | ||
|
||
import Binrep | ||
import Binrep.Type.Magic | ||
import Binrep.CBLen.Generic | ||
import GHC.Generics ( Generic ) | ||
|
||
data DMagic = DMagic | ||
{ dMagic1_8b :: Magic '[0xFF, 0, 1, 0, 1, 0, 1, 0xFF] | ||
} deriving stock Generic | ||
|
||
instance IsCBLen DMagic where type CBLen DMagic = CBLenGeneric () DMagic | ||
instance PutC DMagic where putC = putGenericStruct |
Oops, something went wrong.