{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | The Futhark prelude embedded into the Futhark compiler.  This
-- means we do not have to parse and type-check it whenever we compile
-- a Futhark program.
module Language.Futhark.Futlib.Prelude (preludeBasis) where

import Futhark.Compiler.Program
import Futhark.Compiler.TH
import Language.Futhark.Futlib()

-- | The Futlib basis constructed from @futlib/prelude.fut@.  This is
-- only a subset of the full futlib, but contains pre-type checked
-- ASTs.
preludeBasis :: Basis
preludeBasis = $(embedBasis "futlib/prelude.fut" "/futlib/prelude")

{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | The Futhark prelude embedded into the Futhark compiler.  This
-- means we do not have to parse and type-check it whenever we compile
-- a Futhark program.
module Language.Futhark.Futlib.Prelude (preludeBasis) where

import Futhark.Compiler.Program
import Futhark.Compiler.TH
import Language.Futhark.Futlib()
import System.FilePath ((</>))

-- | The Futlib basis constructed from @futlib/prelude.fut@.  This is
-- only a subset of the full futlib, but contains pre-type checked
-- ASTs.
preludeBasis :: Basis
preludeBasis = $(embedBasis ("futlib" </> "prelude.fut") "/futlib/prelude")

Fix explicit prelude import on Windows.
Fix explicit prelude import on Windows.

Maybe.  It's hard to get Haskell running on Windows, apparently.
