diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2013-01-30 14:34:06 +0000 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2013-01-30 14:34:06 +0000 |
commit | 6ac7bae74c02d8db306ad236d6498dfad8771ee9 (patch) | |
tree | 361f5b1c4c93ba44ba0940f1315a1c3774d3b885 | |
parent | dd86634af16956f555b228948acc578d678219b4 (diff) | |
download | haskell-6ac7bae74c02d8db306ad236d6498dfad8771ee9.tar.gz |
Expand tabs
-rw-r--r-- | compiler/basicTypes/Demand.lhs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/basicTypes/Demand.lhs b/compiler/basicTypes/Demand.lhs index 6e4f6d7499..5d780364d5 100644 --- a/compiler/basicTypes/Demand.lhs +++ b/compiler/basicTypes/Demand.lhs @@ -695,10 +695,10 @@ However we *don't* want to do this when the argument is not actually taken apart in the function at all. Otherwise we risk decomposing a masssive tuple which is barely used. Example: - f :: ((Int,Int) -> String) -> (Int,Int) -> a - f g pr = error (g pr) + f :: ((Int,Int) -> String) -> (Int,Int) -> a + f g pr = error (g pr) - main = print (f fst (1, error "no")) + main = print (f fst (1, error "no")) Here, f does not take 'pr' apart, and it's stupid to do so. Imagine that it had millions of fields. This actually happened @@ -1090,4 +1090,4 @@ instance Binary CPRResult where 1 -> return RetProd 2 -> return NoCPR _ -> return BotCPR -\end{code}
\ No newline at end of file +\end{code} |