codesnippets:fnowarnorphans
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| codesnippets:fnowarnorphans [2021/04/12 20:03] โ f2b216 | codesnippets:fnowarnorphans [2025/10/08 00:48] (current) โ external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== {-# OPTIONS_GHC -fno-warn-orphans #-} ====== | ====== {-# OPTIONS_GHC -fno-warn-orphans #-} ====== | ||
| + | ~~DISCUSSION~~ | ||
| * prevents warnings of orphan instance, meaning: | * prevents warnings of orphan instance, meaning: | ||
| Line 6: | Line 7: | ||
| * see also [[https:// | * see also [[https:// | ||
| * NOTE: The purpose of the examples here is only to demonstrate the impact on the compiler. The examples may not make sense as a use case of type classes. | * NOTE: The purpose of the examples here is only to demonstrate the impact on the compiler. The examples may not make sense as a use case of type classes. | ||
| - | * example that may make more sense: [[codesnippets: | + | * example that may make more sense: [[codesnippets: |
| * example: | * example: | ||
| * code of module Lib:< | * code of module Lib:< | ||
| Line 54: | Line 55: | ||
| x1 = fMy 3.4 | x1 = fMy 3.4 | ||
| </ | </ | ||
| - | * compiles, error and warning free, with compiler: GHC 8.10.4, using -Wall | + | * compiles, error and warning free, with compiler: GHC 8.10.4, using compiler option |
| * executes, with output:< | * executes, with output:< | ||
| 15.959999999999999 | 15.959999999999999 | ||
| </ | </ | ||
| + | |||
| + | ===== โ ===== | ||
| + | ~~DISCUSSION~~ | ||
codesnippets/fnowarnorphans.1618250588.txt.gz ยท Last modified: (external edit)
