Sayfalar

26 Temmuz 2014 Cumartesi

Haskell Day 3

Learning Haskell Day3

Today i discover library of haskell.It is very easy to import a library on our codes. "import" keywords handle everything :)

For example i added System.Info library for using some ready function which implemented before.With this code we can learn system's info about OS or compiler etc.


import System.Info

main=do
print os
print compilerName
print compilerVersion

This code will return for me "linux"  "ghc" and "version versionbranch[7,6]"

Here some basic libraries for Haskell these libraries have some ready functions and data types for using if you interested link look down :)

http://www.haskell.org/ghc/docs/6.12-latest/html/libraries/base-4.2.0.1/

Hiç yorum yok:

Yorum Gönder