Skip to content

j6carey/word-compat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

word-compat

Hackage Haskell CI

Since GHC 9.2, Small Word and Int types are now defined in terms of the new primitives with corresponding sizes, not Word# Int#. This broke a (somewhat surprising) number of code, leaving a bunch of packages still behind GHC 9.2.

This package provides pattern synonyms that resemble the old constructors of small Int/Word types, and you can save a lot of work of explicitly writing wordXXToWord and wordToWordXX for each use site.

Most likely you'll be able to get your code buildable just by replacing GHC.Word by GHC.Word.Compat.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 100.0%