Send Beginners mailing list submissions to
        beginners@haskell.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1.  Review request (C K Kashyap)
   2.  I can see lists "working" for matrix algorithms if the
      access patterns are mostly from the start or end of rows and
      columns. (KC)
   3.  DPH installation and LLVM (listig...@gmail.com)
   4. Re:  DPH installation and LLVM (Brandon Allbery)
   5. Re:  Review request (Carlos J. G. Duarte)
   6. Re:  DPH installation and LLVM (listig...@gmail.com)


----------------------------------------------------------------------

Message: 1
Date: Sun, 15 Jul 2012 17:38:29 +0530
From: C K Kashyap <ckkash...@gmail.com>
Subject: [Haskell-beginners] Review request
To: beginners <beginners@haskell.org>
Message-ID:
        <CAGdT1goLUM8TxA=ntyuvmpdyackf5m_c6_jb7fmu5-zmerw...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi,
I've written a small haskell program to extract a section from a file
between start and end markers. For example, if I have a file such as below
-
a
b
c
        <bug>
d
e
f
        </bug>
g
h
i

I'd like to extract the contents between <bug> and </bug> (including the
markers).

startTag = "<bug>"endTag = "</bug>"
process  = unlines . specialTakeWhile (f endTag) . dropWhile (f
startTag) . lines
        where f t x = not (x =~ t)
              specialTakeWhile :: (a -> Bool) -> [a] -> [a]
              specialTakeWhile ff [] = []
              specialTakeWhile ff (x:xs) = if ff x then
x:(specialTakeWhile ff xs) else [x]



It'll be great if I could get some feedback on this.


Regards,

Kashyap
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20120715/77950c5b/attachment-0001.htm>

------------------------------

Message: 2
Date: Sun, 15 Jul 2012 11:01:40 -0700
From: KC <kc1...@gmail.com>
Subject: [Haskell-beginners] I can see lists "working" for matrix
        algorithms if the access patterns are mostly from the start or end of
        rows and columns.
To: haskell-cafe <haskell-c...@haskell.org>, beginners@haskell.org
Message-ID:
        <CAMLKXynLpMEEh8ZEZe0c07WSJP=jbwwbxesuoqf2bc2pdbv...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Are there any such matrix algorithms that operate mainly from the start or
end or rows and columns?

Note: If the access pattern starts from the end of a row then one stores
the row in reverse order in a list.

-- 
--
Regards,
KC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20120715/bd9c364a/attachment-0001.htm>

------------------------------

Message: 3
Date: Sun, 15 Jul 2012 14:49:47 -0400
From: listig...@gmail.com
Subject: [Haskell-beginners] DPH installation and LLVM
To: beginners@haskell.org
Message-ID: <c418f1b4-4131-43a1-8799-492884b13...@gmail.com>
Content-Type: text/plain; charset=us-ascii

Dear all,

being completely new to Haskell I wanted to explore what DPH is about, so I 
tried to install it via

cabal install dph-examples

but the installation process stops once it gets to installing the actual 
examples package:

---
Building dph-examples-0.6.1.3...
Preprocessing executable 'dph-spectral-smvm' for dph-examples-0.6.1.3...
[1 of 3] Compiling Vectorised       ( examples/spectral/SMVM/dph/Vectorised.hs, 
dist/build/dph-spectral-smvm/dph-spectral-smvm-tmp/Vectorised.o )
exprType TYPE ghc-prim:GHC.Types.Double{(w) tc 3u}
exprType TYPE ghc-prim:GHC.Types.Double{(w) tc 3u}
exprType TYPE ghc-prim:GHC.Types.Double{(w) tc 3u}
exprType TYPE ghc-prim:GHC.Types.Double{(w) tc 3u}
exprType TYPE ghc-prim:GHC.Types.Double{(w) tc 3u}
exprType
    TYPE (ghc-prim:GHC.Types.Int{(w) tc 3J},
          ghc-prim:GHC.Types.Double{(w) tc 3u})
Warning: Couldn't figure out LLVM version!
         Make sure you have installed LLVM
ghc: could not execute: opt
cabal: Error: some packages failed to install:
dph-examples-0.6.1.3 failed during the building phase. The exception was:
ExitFailure 1
---

This is the rest of my setup:

Mac OS X 10.7.4
Xcode 4.3.3 + Command Line Tools (from within Xcode)
Haskell Platform 2012.2.0.0 32bit

Why doesn't Haskell find the LLVM compiler? Is there a way to install the 
remaining examples without LLVM compilation?

Thanks,
Oliver


------------------------------

Message: 4
Date: Sun, 15 Jul 2012 14:56:32 -0400
From: Brandon Allbery <allber...@gmail.com>
Subject: Re: [Haskell-beginners] DPH installation and LLVM
To: listig...@gmail.com
Cc: beginners@haskell.org
Message-ID:
        <CAKFCL4XfX5sUEFD=VwFRPkPFW-kfhNjSF8YUR586Ztw=7fq...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Sun, Jul 15, 2012 at 2:49 PM, <listig...@gmail.com> wrote:

> Mac OS X 10.7.4
> Xcode 4.3.3 + Command Line Tools (from within Xcode)
> Haskell Platform 2012.2.0.0 32bit
>
> Why doesn't Haskell find the LLVM compiler? Is there a way to install the
> remaining
>
Apple doesn't ship the full LLVM suite, but only the small part Apple cares
about; you need to install a full LLVM from somewhere else.

-- 
brandon s allbery                                      allber...@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20120715/78db4a00/attachment-0001.htm>

------------------------------

Message: 5
Date: Sun, 15 Jul 2012 21:06:20 +0100
From: "Carlos J. G. Duarte" <carlos.j.g.dua...@gmail.com>
Subject: Re: [Haskell-beginners] Review request
To: beginners@haskell.org
Message-ID: <500322bc.4030...@gmail.com>
Content-Type: text/plain; charset="us-ascii"

An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20120715/14ae7250/attachment-0001.htm>

------------------------------

Message: 6
Date: Sun, 15 Jul 2012 16:58:49 -0400
From: listig...@gmail.com
Subject: Re: [Haskell-beginners] DPH installation and LLVM
To: Brandon Allbery <allber...@gmail.com>
Cc: beginners@haskell.org
Message-ID: <c69025cd-f1a8-474c-bc63-a0a5e2c50...@gmail.com>
Content-Type: text/plain; charset=us-ascii

> Apple doesn't ship the full LLVM suite, but only the small part Apple cares 
> about; you need to install a full LLVM from somewhere else.

Thanks for your quick answer. So how would I install the full LLVM suite and 
make it coexist peacefully with whatever Apple chose to ship?


------------------------------

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 49, Issue 16
*****************************************

Reply via email to