haskell-bitcoin / bitcoin

Bitcoin Library for Haskell
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Come up with a better way to handle `Network` dependent behavior #4

Open ProofOfKeags opened 2 years ago

ProofOfKeags commented 2 years ago

Example: The Address type doesn't have any reference (type or runtime) to what network the address is for, even though it is a critical piece of the address.

Suggested by @wraithm.

ProofOfKeags commented 1 year ago

Looks like this is gonna require more exploration. Type witnesses may not be the best solution here.