Good stuff for programming geeks
[ start | index | login or register ]
start > Tom's Haskell code

Tom's Haskell code

Created by tmoertel. Last edited by tmoertel 332 days ago. Viewed 3015 times. #21
[diff] [history] [edit] [rdf]
labels
Category:Haskell
attachments
Columnwise.hs (1997)
GetInput.hs (2803)
POpen.hs (8065)

Here is some Haskell code I have written. [More to come.]

License

Unless otherwise stated, all of my code on this site is licensed under the GNU General Public License, version 2 or greater. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

The code

  • Columnwise. This module provides functions for folding over matrix data, column by column. The primary advantage over transposing the matrix to expose the columns and then mapping a fold is that this method requires less space, especially if you are computing a single summary value per column.
  • POpen. Lets you run external processes while controlling their input and reading from their outputs. Similar to the >>old POpen module in the posix package from the pre-hierarchical–library days. This version offers strict and lazy variants.
  • GetInput. This module provides a method of getting input from files named on the command line or, if no files are provided, from standard input. This mimics Perl's default input handling, which is convenient. Also, the module provides versions of the standard interact function that use these input-getting behaviors.
  • cabal2rpm. This is really a Perl program that converts Haskell-Cabal package descriptions into RPM specs. See Cabal2rpm for more.
no comments | post comment
community.moertel.com | Copyright © 2003–07 Moertel Consulting