KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am making a good many arrays whose index type is Bounded and whose index range is (minBound, maxBound) . For such an array, a bounds check ought to be unnecessary. How can I persuade GHC to eliminate the bounds check? My particular application uses both boxed and unboxed immutable arrays, but I am interested in all types of Haskell arrays.
Tags (comma-separated)
Save Edits
Cancel