Devil may Cry | 5 Jul 2012 22:06
Picon
Gravatar

Guide for Portable Haskell on windows


I have started learning Haskell for second time :)
First was attempt was failure.

I have simple guide how to create portable Haskell for Windows:

1. Download Haskell Platform  from  http://hackage.haskell.org/platform/
runas admin and select "just extract files" in Haskell dir

2. make Haskell\hs.bat ->
----------------------------
 <at> ECHO OFF
rem %~dp0 survives runas admin,  %CD% doesn't
rem %~d0 current drive

rem No spaces in Path!
SET
Path=%Path%;%~dp0;%~dp0bin;%~dp0lib;%~dp0lib\extralibs\bin;%~dp0mingw\bin;%~dp0code;C:\Users\%USERNAME%\AppData\Roaming\cabal\bin

CMD /k "cd %~dp0MyCode"
----------------------------

MyCode is folder in Haskell dir.
Content between --- should be written in hs.bat

3. start hs.bat and type:
path    // check paths
ghci    // check interpreter
Prelude>  :?

(Continue reading)

Daniel Mlot | 10 Apr 2012 04:41
Picon
Favicon

One less red link in Haskell Basics

Hello,

Since I am doing some moderately large scale changes to the Beginner's 
Track so that we can eventually dispense with that "in reorganization" 
warning on the main page, I guess it is a good idea to write regularly 
to the list so that anyone with an opinion can chime in.

Last week some nice progress (IMHO) was done with the first two parts of 
the Beginner's Trail; and by now I believe a newbie wouldn't find any 
serious breakage disrupting his progress through them. Beyond switching 
the main focus of "Next steps" to a first presentation of pattern 
matching, the other major change was an attempt at writing one of the 
two new pages that Apfelmus, back in 2010 envisioned for Haskell Basics; 
namely, "Building a vocabulary".

My realization of "Building a vocabulary" has the same goal Apfelmus 
originally outlined - making newbies aware of the existence and 
importance of Prelude and the hierarchical libraries. Unfortunately, it 
does so in a chatty rather than practical way. To counter that, we will 
need at least some of the following:

1. the Prelude cheat sheets we talked about in 2010 (see 
http://en.wikibooks.org/wiki/Haskell/Experimental_Modules/Cheat_sheet_prototype_1 
for a rough demo - though by now I believe that the text sections after 
the table are unnecessary);

2. to make better use of the "Libraries Reference" part of Haskell in 
Practice (by completing some pages, making others clearer and providing 
more references to them in the Beginner's Track);

(Continue reading)

Daniel Mlot | 29 May 2010 10:09
Picon
Favicon

Truth values and a couple other things

While trying to think about how I could tackle the section on numerical 
types in "Type basics" I found out that I couldn't reason properly about 
it without knowing to which extent types would be discussed in the 
previous sections. That led me to "jump the gun" and attempt writing the 
bulk of the section myself. Apfelmus, please forgive me if that bothers 
you in any way (for instance, if you had a draft of your own being 
prepared) - in any case, just as I took some liberties with your outline 
feel free to do the same and turn my text upside down if you feel the 
need to :)

I will use this message to register some issues that are roaming in my 
mind lest I forget to mention them:

* Since we are reorganizing and rewriting most of the first chapters 
anyway it could be a good opportunity to standardize the style of code 
blocks. One option would be just using <source> tags everywhere to get 
syntax highlighting (with recent changes to the Wikibooks CSS files 
<source> is also bundled with the standard grey background box). There 
would be a couple possible issues to consider, though. We would probably 
have to do some template engineering, although I don't think that would 
be too troublesome. Another source of annoyance would be that GHCi 
printouts, ubiquitous on the early chapters, wouldn't be subject to the 
same standardization. Finally, there is the didactic concern of whether 
highlighting can be distracting for complete newbies during the first 
few modules (I do not have a really strong position on the subject but 
feel that "plain" plain text does have some charm due to sheer 
simplicity and transparency).

* One thing that occurred to me while writing about guards: is it even 
accurate to speak of our if/else and related constructs as "control 
(Continue reading)

Daniel Mlot | 12 May 2010 02:25
Picon
Favicon

"List of topics" meta-module

As a product of the discussions we (mainly me and Apfelmus) had over the 
last few threads I created a "List of topics" page in 
http://en.wikibooks.org/wiki/Haskell/List_of_topics . It is a simple 
presentation of the key topics covered by the book modules with 
occasional comments. The intention is to make picturing the structure of 
the book and brainstorming about large-scale reorganizations easier. As 
of now it covers only "Haskell Basics", "Elementary Haskell" and 
"Intermediate Haskell". If you find the list useful feel free to discuss 
book structure in its talk page, expand it to cover the advanced 
chapters or make test edits to visualize the effects of changes to the 
book organization.

Regards,

Daniel Mlot
Daniel Mlot | 9 May 2010 21:05
Picon
Favicon

Splitting of "More on Datatypes"

Hi all,

One of the ideas I had while reading the book but didn't have the guts 
to pull off without asking for feedback was splitting the More on 
Datatypes module in Intermediate Haskell. As of now, it has a first part 
which describes an assortment of important datatype techniques 
(enumerations, records and a more formal presentation of parametrized 
types - using Maybe as example) and then moves on to a long discussion 
of binary trees and how to define maps and folds for arbitrary data 
structures. The coupling of these two parts is very loose (the only 
concept of the first part needed for the data structure discussions is 
parametrization) and probably does not justify them being glued together 
to make such a long (27k) module. Another related issue is that one 
important omission from the Beginner's Track is an explanation of 
newtype, and I guess More on Datatypes would be the right place to put 
it. That would make the module even longer, however, and would be 
another reason to make the split.

The only thing I am not sure of is a good name for the second "half" of 
More on Datatypes in case of a split. The obvious choice would be "Trees 
and ???" (I have no idea of a good concise term to replace the ???), 
although maybe something more generic like "Introduction to Data 
Structures" could work.

Thanks, and see you,

Daniel Mlot

P.S.: By the way, Apfelmus has moved Type Declarations to just before 
Pattern Matching. Probably the right thing to do (it just didn't fit 
(Continue reading)

Daniel David | 6 May 2010 23:50
Picon
Favicon

Anyone around?

Hello everybody,

I joined this list after spending a good while learning Haskell basics with the Wikibook and at the same time
trying to do some refactoring on the book itself. Consider this a test message: I am looking for other
people interested in discussing ways to improve the contents, and I'm polling the reactions/activity of
the subscribers of this list. I am particularly interested in the Beginner Modules - not only because it's
the area I, as a newbie haskeller, feel more comfortable in contributing to right now, but also because it
naturally would tend to be kind of overlooked by veterans willing to add interesting stuff in the advanced
chapters (as far as I can be aware of, only one Wikibook regular has seen some of my contributions there so
far, namely Apfelmus).

Waiting for your replies ;-)

Daniel Mlot

P.S.: Forgive me for any etiquette mistakes, it is the first time I'm using a conventional mailing list as
opposed to a phpBB forum or something in that vein. 

      
Eric Kow | 24 Jun 2009 09:32
Picon
Gravatar

Haskell syntax highlighting on Wikibooks/Wikipedia

Hi everybody,

I just wanted to point out that with
  https://bugzilla.wikimedia.org/show_bug.cgi?id=10967
resolved, Haskell syntax highlighting is now available on Wikibooks

You can see a small sample in
  http://en.wikibooks.org/wiki/User:Kowey/Haskell

<source lang="haskell">
-- foo
let x = foo
</source>

I think I'll post this to Haskell cafe as well

--

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
_______________________________________________
Wikibook mailing list
Wikibook@...
http://www.haskell.org/mailman/listinfo/wikibook
apfelmus | 5 Aug 2007 14:57
Picon
Favicon
Gravatar

[Haskell wikibook] New template for referencing standard library haddocks

Hello wikibookians,

There's a new template for referencing standard library haddocks.

  http://en.wikibooks.org/wiki/Template:Haskell_lib

- What does this template do? -

This template generates links to the documentation of GHC's standard
library modules. For example, if you talk about Control.Monad and want
the text to be a proper link to the latest GHC Haddocks, this template
is for you.

Arguably, automatic syntax coloring and hyperlinking of Haskell source
code should obsolete this template.

- Usage -

 {{Haskell lib|Control|Monad}}
 => Control.Monad from the base-package.

 {{Haskell lib|package=mtl|Control|Monad|State}}
 => Control.Monad.State from the mtl-package.

Currently, the module name may be only 5 levels deep, but that's easy to
change.

Regards,
apfelmus
(Continue reading)

apfelmus | 8 Jul 2007 14:58
Picon
Favicon
Gravatar

[Haskell wikibook] Re: Haskell wikibook - chapter "Theseus and the Zipper"

Dear Mr. Huet,

> Very nice indeed.
>
> The analogy with Ariadne's thread is a natural one. I use myself the 
> analogy with mountaineering, you are hanging from the top of the 
> datastructure using the zipper as a return rope.
>
> Compliments on a nice site on functional programming. Keep up the good 
> work.

Thank you very much for the encouragement, we are delighted that you 
appreciate our efforts :)

The aim of the Haskell wikibook is to write a free and gentle textbook 
on Haskell and associated techniques for functional programming. Of 
course, to keep up the good work, we are always looking for 
contributors. In fact, the book lives through contributions from its 
readers: it is built with a wiki, utilizing the same platform as 
Wikipedia and hence sharing the same principle that anyone can edit.

> After I learned of Conor Mc Bride's work, I wrote some more about 
> zippers for a de Bruijn's Festschrift, see item 79 in my bibliography 
> [http://yquem.inria.fr/~huet/bib.html].
>
> My main application of zippers so far has been for the design of the 
> Zen toolkit for computational linguistics, see items 78,82,84,85 and 
> site http://sanskrit.inria.fr/huet/ZEN/index.html. This toolkit was 
> reused in Haskell by the Grammatical Framework linguistic platform of 
> Aarne Ranta.
(Continue reading)

Brent Yorgey | 5 Jul 2007 21:47
Picon

[Haskell wikibook] Greetings!

Hi all,

Allow me to introduce myself -- I'm an avid Haskell hobbyist (though hoping to be a PhD student soon) looking for ways to contribute to the Haskell community, and have found the wikibook to be one place where I can combine my love of Haskell with my teaching and writing skills to make a positive contribution.  I've already overhauled the Recursion module and also made some minor edits to the List processing module; please feel free to take a look and let me know if anything I've done doesn't fit with the overall project goals/style etc. (or just edit it yourself =).  For now I plan to continue going through the Elementary Haskell track doing cleanup/editing/making additions and so on.  We'll see how far I get...

Anyway, just thought I would say "hi"!  I'm usually hanging out in #haskell and #haskell-blah (as byorgey) when online, and I plan to hang out in #haskell-books now too, if you should care to chat for any reason.

cheers,
-Brent

_______________________________________________
Wikibook mailing list
Wikibook@...
http://www.haskell.org/mailman/listinfo/wikibook
apfelmus | 1 Jul 2007 13:12
Picon
Favicon
Gravatar

[Haskell wikibook] Fwd: Haskell wikibook - chapter "Theseus and the Zipper"

> Von: Gérard Huet <Gerard.Huet@...>
> Datum: 30. Juni 2007 14:09:23 MESZ
> An: apfelmus@...
> Cc: Gérard Huet <Gerard.Huet@...>
> Betreff: Re: Haskell wikibook - chapter "Theseus and the Zipper"
>
> Very nice indeed.
> The analogy with Ariadne's thread is a natural one. I use myself the 
> analogy with mountaineering, you are hanging from
> the top of the datastructure using the zipper as a return rope.
>
> After I learned of Conor Mc Bride's work, I wrote some more about 
> zippers for a de Bruijn's Festschrift, see
> item 79 in my bibliography [http://yquem.inria.fr/~huet/bib.html].
>
> My main application of zippers so far has been for the design of the 
> Zen toolkit for computational linguistics, see
> items 78,82,84,85 and site 
> http://sanskrit.inria.fr/huet/ZEN/index.html.
> This toolkit was reused in Haskell by the Grammatical Framework 
> linguistic platform of Aarne Ranta.
>
> Compliments on a nice site on functional programming. Keep up the good 
> work.
> Gerard
>
> Le 30 juin 07 à 10:40, apfelmus@... a écrit :
>
>> Dear Mr. Huet,
>>
>> Fascinated by the zipper since reading your publication, the authors 
>> of the Haskell wikibook have written a special introduction to this 
>> data structure:
>>
>>   "Theseus and the Zipper".
>>   http://en.wikibooks.org/wiki/Haskell/Zippers
>>
>> starring Theseus and Ariadne. We hope you will enjoy it :)
>>
>> All the best,
>> apfelmus
>>
>

Gmane