Skip to content

Instantly share code, notes, and snippets.

@fros1y
Last active August 29, 2020 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fros1y/09bf2efabe49d880f0a9c022f25d2706 to your computer and use it in GitHub Desktop.
Save fros1y/09bf2efabe49d880f0a9c022f25d2706 to your computer and use it in GitHub Desktop.
Minimal Example of Stack Crash
module Main where
import Prelude
import Effect (Effect)
import Concur.React (HTML)
import Concur.Core (Widget)
import Concur.React.DOM as D
import Concur.React.Run (runWidgetInDom)
import Data.Array as A
main :: Effect Unit
main = runWidgetInDom "main" (testCase 10000)
testCase :: forall a. Int -> Widget HTML a
testCase n = D.div' $ (\x -> D.text $ (show x) <> "\t") <$> (A.range 0 n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment