Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
a61822e8
Commit
a61822e8
authored
Aug 09, 2006
by
ei@vuokko.info
Browse files
Remove HasBounds-instance and implement MArray.getBounds instead
parent
b7790955
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/ghci/ByteCodeLink.lhs
View file @
a61822e8
...
...
@@ -157,10 +157,8 @@ mkPtrsArray ie ce n_ptrs ptrs = do
newtype IOArray i e = IOArray (STArray RealWorld i e)
instance HasBounds IOArray where
bounds (IOArray marr) = bounds marr
instance MArray IOArray e IO where
getBounds (IOArray marr) = stToIO $ getBounds marr
newArray lu init = stToIO $ do
marr <- newArray lu init; return (IOArray marr)
newArray_ lu = stToIO $ do
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment