mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-10 23:52:22 +00:00
Enable FlexibleContexts and import Control.Monad.State (#164)
* Enable FlexibleContexts and import Control.Monad.State * Import Control.Monad
This commit is contained in:
parent
a593877a3b
commit
ff880e7296
1 changed files with 3 additions and 0 deletions
|
|
@ -364,6 +364,7 @@ withHaskellFile m action = withSystemTempFile "playground.hs" $ \target h -> do
|
|||
hClose h
|
||||
T.writeFile target
|
||||
"{-# LANGUAGE OverloadedStrings #-}\n\
|
||||
\{-# LANGUAGE FlexibleContexts #-}\n\
|
||||
\module Animation where\n\
|
||||
\import Reanimate\n\
|
||||
\import Reanimate.Builtin.Documentation\n\
|
||||
|
|
@ -378,12 +379,14 @@ withHaskellFile m action = withSystemTempFile "playground.hs" $ \target h -> do
|
|||
\import Reanimate.Scene\n\
|
||||
\import qualified Graphics.SvgTree as SVG\n\
|
||||
\import Control.Lens\n\
|
||||
\import Control.Monad\n\
|
||||
\import qualified Data.Text as T\n\
|
||||
\import Linear.V2\n\
|
||||
\import Linear.Metric\n\
|
||||
\import Linear.Vector\n\
|
||||
\import Text.Printf\n\
|
||||
\import Codec.Picture.Types\n\
|
||||
\import Control.Monad.State\n\
|
||||
\-- Used for testing:\n\
|
||||
\-- import System.IO.Unsafe\n\
|
||||
\-- import Control.Concurrent\n\
|
||||
|
|
|
|||
Loading…
Reference in a new issue