Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Commit

Permalink
added compile-time type-checking for the Prelude, as a sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddy Westbrook committed May 25, 2018
1 parent a5eb258 commit 54b89d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Verifier/SAW.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Stability : experimental
Portability : non-portable (language extensions)
-}

{-# LANGUAGE TemplateHaskell #-}

module Verifier.SAW
( module Verifier.SAW.SharedTerm
, module Verifier.SAW.ExternalFormat
Expand All @@ -18,3 +20,7 @@ module Verifier.SAW
import Verifier.SAW.SharedTerm
import Verifier.SAW.Prelude
import Verifier.SAW.ExternalFormat

-- The following type-checks the Prelude at compile time, as a sanity check
import Language.Haskell.TH
$(runIO (mkSharedContext >>= \sc -> scLoadPreludeModule sc >> return []))

0 comments on commit 54b89d3

Please sign in to comment.