agda2hs
agda2hs copied to clipboard
Compatibility with 32-bit platforms
(Context: #29)
Agda doesn't have any builtin 32-bit numerical types, so it's not clear how to best support 32-bit platforms (if at all). Some options (in order of less work to more work):
- Map Agda 64-bit numbers to
Int
andWord
, but issue a warning on 32-bit platforms that this is not safe. - Map Agda numbers to
Int64
andWord64
on 32-bit platforms. This means there won't be a mapping forInt
, so many Prelude functions will be unusable. - Implement
Int32
andWord32
on the Agda side (using modular arithmetic) and map these toInt
andWord
on 32-bit platforms.
The last two are not mutually exclusive.