Skip to content

Commit

Permalink
Doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
locallycompact committed Jun 25, 2022
0 parents commit c4981af
Show file tree
Hide file tree
Showing 5 changed files with 634 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Hello.idr
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module Hello

main :: IO ()
main = putStrLn "Hello World"
19 changes: 19 additions & 0 deletions Main.idr
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module Main

import Core.Context
import Compiler.Common
import Idris.Driver

compile : Ref Ctxt Defs -> (tmpDir : String) -> (execDir : String) ->
ClosedTerm -> (outfile : String) -> Core (Maybe String)
compile defs tmp dir term file = do coreLift $ putStrLn "I'd rather not."
pure $ Nothing

execute : Ref Ctxt Defs -> (execDir : String) -> ClosedTerm -> Core ()
execute defs dir term = do coreLift $ putStrLn "Maybe in an hour."

lazyCodegen : Codegen
lazyCodegen = MkCG compile execute Nothing Nothing

main : IO ()
main = mainWithCodegens [("lazy", lazyCodegen)]
Loading

0 comments on commit c4981af

Please sign in to comment.