Skip to content

Commit

Permalink
Merge pull request #138 from ghcjs/hkm/remove-cpp
Browse files Browse the repository at this point in the history
Remove old GHCJS support
  • Loading branch information
hamishmack authored May 22, 2024
2 parents b6c0f11 + 41ea0fb commit 1a97fcd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions JavaScript/Web/AnimationFrame.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{-# LANGUAGE JavaScriptFFI #-}
{-# LANGUAGE InterruptibleFFI #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE CPP #-}

{- |
Animation frames are the browser's mechanism for smooth animation.
Expand Down Expand Up @@ -65,11 +64,7 @@ cancelAnimationFrame h = js_cancelAnimationFrame h

foreign import javascript unsafe "(() => { return { handle: null, callback: null }; })"
js_makeAnimationFrameHandle :: IO AnimationFrameHandle
#ifdef __GHCJS__
foreign import javascript unsafe "(() => { return { handle: null, callback: $1 }; })"
#else
foreign import javascript unsafe "(($1) => { return { handle: null, callback: $1 }; })"
#endif
js_makeAnimationFrameHandleCallback :: JSVal -> IO AnimationFrameHandle
foreign import javascript unsafe "h$animationFrameCancel"
js_cancelAnimationFrame :: AnimationFrameHandle -> IO ()
Expand Down
2 changes: 1 addition & 1 deletion ghcjs-base.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ library
scientific >= 0.3.7 && < 0.4,
vector >= 0.10 && < 0.14,
containers >= 0.5 && < 0.8,
time >= 1.5 && < 1.13,
time >= 1.5 && < 1.15,
hashable >= 1.2 && < 1.5,
unordered-containers >= 0.2 && < 0.3,
attoparsec >= 0.11 && < 0.15,
Expand Down

0 comments on commit 1a97fcd

Please sign in to comment.