module Main where

import Control.DeepSeq
import Control.Exception
import Control.Monad
import Data.ByteString as BS
import Jason
import System.Environment

main :: IO ()
main = do
  args <- getArgs
  let times = read (Prelude.head args) :: Int
  bs <- BS.readFile "../fixtures/citylots.json"
  replicateM_ times $ do
    let (Just jVal) = parse bs
    void $ evaluate $ force jVal
