| 1 | -- The Compiler Toolkit: configuration switches |
| 2 | -- |
| 3 | -- Author : Manuel M. T. Chakravarty |
| 4 | -- Created: 3 October 95 |
| 5 | -- |
| 6 | -- Version $Revision: 1.1.1.1 $ from $Date: 2004/11/13 16:42:45 $ |
| 7 | -- |
| 8 | -- Copyright (c) [1995...1999] Manuel M. T. Chakravarty |
| 9 | -- |
| 10 | -- This library is free software; you can redistribute it and/or |
| 11 | -- modify it under the terms of the GNU Library General Public |
| 12 | -- License as published by the Free Software Foundation; either |
| 13 | -- version 2 of the License, or (at your option) any later version. |
| 14 | -- |
| 15 | -- This library is distributed in the hope that it will be useful, |
| 16 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 18 | -- Library General Public License for more details. |
| 19 | -- |
| 20 | --- DESCRIPTION --------------------------------------------------------------- |
| 21 | -- |
| 22 | -- This modules is used to configure the toolkit. |
| 23 | -- |
| 24 | --- DOCU ---------------------------------------------------------------------- |
| 25 | -- |
| 26 | -- language: Haskell 98 |
| 27 | -- |
| 28 | -- * Must not import any other module. |
| 29 | -- |
| 30 | --- TODO ---------------------------------------------------------------------- |
| 31 | -- |
| 32 | |
| 33 | module Config (-- limits |
| 34 | -- |
| 35 | errorLimit, |
| 36 | -- |
| 37 | -- debugging |
| 38 | -- |
| 39 | assertEnabled) |
| 40 | where |
| 41 | |
| 42 | -- compilation aborts with a fatal error, when the given number of errors |
| 43 | -- has been raised (warnings do not count) |
| 44 | -- |
| 45 | errorLimit :: Int |
| 46 | errorLimit = 20 |
| 47 | |
| 48 | -- specifies whether the internal consistency checks with `assert' should be |
| 49 | -- made |
| 50 | -- |
| 51 | assertEnabled :: Bool |
| 52 | assertEnabled = True |