Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > f9b127c02f56e71454a7233185e51eb4 > files > 776

ghc-base-devel-4.3.1.0-16.fc15.i686.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!-- Generated by HsColour, http://www.cs.york.ac.uk/fp/darcs/hscolour/ -->
<title>Data/Bool.hs</title>
<link type='text/css' rel='stylesheet' href='hscolour.css' />
</head>
<body>
<pre><a name="line-1"></a><span class='hs-comment'>{-# OPTIONS_GHC -XNoImplicitPrelude #-}</span>
<a name="line-2"></a><span class='hs-comment'>-----------------------------------------------------------------------------</span>
<a name="line-3"></a><span class='hs-comment'>-- |</span>
<a name="line-4"></a><span class='hs-comment'>-- Module      :  Data.Bool</span>
<a name="line-5"></a><span class='hs-comment'>-- Copyright   :  (c) The University of Glasgow 2001</span>
<a name="line-6"></a><span class='hs-comment'>-- License     :  BSD-style (see the file libraries/base/LICENSE)</span>
<a name="line-7"></a><span class='hs-comment'>-- </span>
<a name="line-8"></a><span class='hs-comment'>-- Maintainer  :  libraries@haskell.org</span>
<a name="line-9"></a><span class='hs-comment'>-- Stability   :  experimental</span>
<a name="line-10"></a><span class='hs-comment'>-- Portability :  portable</span>
<a name="line-11"></a><span class='hs-comment'>--</span>
<a name="line-12"></a><span class='hs-comment'>-- The 'Bool' type and related functions.</span>
<a name="line-13"></a><span class='hs-comment'>--</span>
<a name="line-14"></a><span class='hs-comment'>-----------------------------------------------------------------------------</span>
<a name="line-15"></a>
<a name="line-16"></a><span class='hs-keyword'>module</span> <span class='hs-conid'>Data</span><span class='hs-varop'>.</span><span class='hs-conid'>Bool</span> <span class='hs-layout'>(</span>
<a name="line-17"></a>   <span class='hs-comment'>-- * Booleans</span>
<a name="line-18"></a>   <span class='hs-conid'>Bool</span><span class='hs-layout'>(</span><span class='hs-keyglyph'>..</span><span class='hs-layout'>)</span><span class='hs-layout'>,</span>
<a name="line-19"></a>   <span class='hs-comment'>-- ** Operations </span>
<a name="line-20"></a>   <span class='hs-layout'>(</span><span class='hs-varop'>&amp;&amp;</span><span class='hs-layout'>)</span><span class='hs-layout'>,</span>        <span class='hs-comment'>-- :: Bool -&gt; Bool -&gt; Bool</span>
<a name="line-21"></a>   <span class='hs-layout'>(</span><span class='hs-varop'>||</span><span class='hs-layout'>)</span><span class='hs-layout'>,</span>        <span class='hs-comment'>-- :: Bool -&gt; Bool -&gt; Bool</span>
<a name="line-22"></a>   <span class='hs-varid'>not</span><span class='hs-layout'>,</span>         <span class='hs-comment'>-- :: Bool -&gt; Bool</span>
<a name="line-23"></a>   <span class='hs-varid'>otherwise</span><span class='hs-layout'>,</span>   <span class='hs-comment'>-- :: Bool</span>
<a name="line-24"></a>  <span class='hs-layout'>)</span> <span class='hs-keyword'>where</span>
<a name="line-25"></a>
<a name="line-26"></a><span class='hs-cpp'>#ifdef __GLASGOW_HASKELL__</span>
<a name="line-27"></a><span class='hs-keyword'>import</span> <span class='hs-conid'>GHC</span><span class='hs-varop'>.</span><span class='hs-conid'>Base</span>
<a name="line-28"></a><span class='hs-cpp'>#endif</span>
<a name="line-29"></a>
<a name="line-30"></a><span class='hs-cpp'>#ifdef __NHC__</span>
<a name="line-31"></a><span class='hs-keyword'>import</span> <span class='hs-conid'>Prelude</span>
<a name="line-32"></a><span class='hs-keyword'>import</span> <span class='hs-conid'>Prelude</span>
<a name="line-33"></a>  <span class='hs-layout'>(</span> <span class='hs-conid'>Bool</span><span class='hs-layout'>(</span><span class='hs-keyglyph'>..</span><span class='hs-layout'>)</span>
<a name="line-34"></a>  <span class='hs-layout'>,</span> <span class='hs-layout'>(</span><span class='hs-varop'>&amp;&amp;</span><span class='hs-layout'>)</span>
<a name="line-35"></a>  <span class='hs-layout'>,</span> <span class='hs-layout'>(</span><span class='hs-varop'>||</span><span class='hs-layout'>)</span>
<a name="line-36"></a>  <span class='hs-layout'>,</span> <span class='hs-varid'>not</span>
<a name="line-37"></a>  <span class='hs-layout'>,</span> <span class='hs-varid'>otherwise</span>
<a name="line-38"></a>  <span class='hs-layout'>)</span>
<a name="line-39"></a><span class='hs-cpp'>#endif</span>
</pre></body>
</html>