Skip to content

Commit 36c97f3

Browse files
committed
metaprogramming
1 parent 19df5be commit 36c97f3

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

specific_topics.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,39 @@ If you want to follow up on type and category theory:
429429

430430
- [Type theory and Functional Programming](http://www.cs.kent.ac.uk/people/staff/sjt/TTFP/).
431431

432+
# Metaprogramming
433+
434+
## Generics
435+
436+
Generics are usually used to generate typeclass instances, but you'll see TH used for that purpose too.
437+
438+
- https://ocharles.org.uk/blog/posts/2014-04-26-constructing-generically.html
439+
440+
- Current docs: https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/generic-programming.html
441+
442+
## QuasiQuotation
443+
444+
- Simple example, nice for avoiding gnarly escape sequences in strings: https://hackage.haskell.org/package/raw-strings-qq-1.0.2/docs/Text-RawString-QQ.html
445+
446+
- Tutorial: https://www.fpcomplete.com/user/marcin/quasiquotation-101
447+
448+
- http://www.well-typed.com/blog/2014/10/quasi-quoting-dsls/
449+
450+
## Template Haskell
451+
452+
- https://www.fpcomplete.com/user/marcin/template-haskell-101
453+
454+
- https://ocharles.org.uk/blog/guest-posts/2014-12-22-template-haskell.html
455+
456+
- Current docs: https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/template-haskell.html
457+
458+
- OCaml and TH slides: https://nicolaspouillard.fr/talks/cufp-metaprogramming-tutorial-slides.pdf
459+
460+
- http://illustratedhaskell.org/index.php/2011/09/24/template-haskell-tutorial/ (old)
461+
462+
- http://stackoverflow.com/questions/10857030/whats-so-bad-about-template-haskell (warnings about TH)
463+
464+
432465
# Other fun topics
433466

434467
## Parametricity, ad-hoc vs. parametric polymorphism, free theorems

0 commit comments

Comments
 (0)