Skip to content

Instantly share code, notes, and snippets.

@amtal
Created September 18, 2015 10:22
Show Gist options
  • Save amtal/6a3484c226d0d3012183 to your computer and use it in GitHub Desktop.
Save amtal/6a3484c226d0d3012183 to your computer and use it in GitHub Desktop.
-- S D O
fp_1 :: (src -> i -> o) -- interpreter
-> src -- + source code
-- partial application magic happens here
-> (i -> o) -- = executable
-- Static Dyn Output
fp_2 :: ((src -> i -> o) -> src -> (i -> o)) -- fp_1
-> (src -> i -> o) -- + interpreter
-- partial application magic happens here
-> (src -> (i -> o)) -- = compiler
-- Static Dynamic Output
fp_3 :: ((src -> i -> o) -> src -> (i -> o)) -> (src -> i -> o) -> (src -> (i -> o)) -- fp_2
-> ((src -> i -> o) -> src -> (i -> o)) -- + fp_1
-- partial application magic happens here
-> ((src -> i -> o) -> (src -> (i -> o))) -- = interpreter-to-compiler compiler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment