All Questions
1 question
3
votes
1
answer
182
views
Have Haskell expand certain thunks at compile time? [duplicate]
Is there a way to have Haskell expand certain thunks at run time. For example, say I have
--Purposely inefficient code for demonstration
fib 0=0
fib 1=1
fib n=fib n=fib (n-1) + fib (n-2)
goldRatio=...