prep for notable re-org
This commit is contained in:
parent
024115e389
commit
c8b192cade
4 changed files with 31 additions and 18 deletions
|
@ -2,7 +2,7 @@
|
|||
module BusTypes(
|
||||
BusError(..),
|
||||
TransactionSize(..),
|
||||
Request(..),
|
||||
ReadRequest(..),
|
||||
BusResponse(..),
|
||||
BusVal(..),
|
||||
ReadResponse(..),
|
||||
|
@ -27,7 +27,7 @@ data TransactionSize
|
|||
| SizeQuadWord
|
||||
deriving (Generic, Show, Eq, NFDataX)
|
||||
|
||||
data Request = Request Addr TransactionSize
|
||||
data ReadRequest = Request Addr TransactionSize
|
||||
deriving (Generic, Show, Eq, NFDataX)
|
||||
|
||||
data BusResponse a
|
||||
|
@ -43,8 +43,10 @@ data BusVal
|
|||
| BusQuadWord QuadWord
|
||||
deriving (Generic, Show, Eq, NFDataX)
|
||||
|
||||
newtype ReadResponse = ReadResponse (BusResponse BusVal)
|
||||
deriving (Generic, Show, Eq, NFDataX)
|
||||
-- newtype ReadResponse = ReadResponse (BusResponse BusVal)
|
||||
-- deriving (Generic, Show, Eq, NFDataX)
|
||||
|
||||
type ReadResponse = Either BusError BusVal
|
||||
|
||||
newtype WriteResponse = WriteResponse (BusResponse ())
|
||||
deriving (Generic, Show, Eq, NFDataX)
|
||||
|
|
Reference in a new issue