liqula / react-hs

A GHCJS binding to React based on the Flux design. The flux design pushes state and complicated logic out of the view, allowing the rendering functions and event handlers to be pure Haskell functions.
32 stars 10 forks source link

remove dead (and probably broken) code #82

Open fisx opened 6 years ago

fisx commented 6 years ago
$ git grep fakeReExport
react-hs/src/React/Flux/Internal.hs:  , fakeReExport
react-hs/src/React/Flux/Internal.hs:fakeReExport :: Typeable a => JSVal -> IO (Export a)
react-hs/src/React/Flux/Internal.hs:fakeReExport = export . unsafeCoerce

doesn't appear to be used anywhere.

fisx commented 6 years ago

same with fakeDerefExport. the other export variants do not have too many call sites, perhaps we can remove the entire block? (that would make this issue less easy, though.)