This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE ScopedTypeVariables #-} | |
module Main where | |
import Text.Parsec | |
import Text.Parsec.Expr | |
import qualified Text.Parsec.Token as TT | |
import qualified Text.Parsec.Language as Lang | |
import Data.Char | |
import System.IO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
open System.IO | |
open System.Net | |
open System.Web | |
open System.Collections.Generic | |
open System.Text.RegularExpressions | |
let urls =["https://en.wikipedia.org/wiki/Toomas_Altnurme"; "https://en.wikipedia.org/wiki/J%C3%BCri_Arrak"; "https://en.wikipedia.org/wiki/Alisa_Jakobi"; | |
"https://en.wikipedia.org/wiki/Kalli_Kalde"; "https://en.wikipedia.org/wiki/Liis_Koger"; "https://en.wikipedia.org/wiki/Mari_Kurismaa"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
open System.IO | |
open System.Drawing | |
let ResizeImage(img:Image):Image= | |
let siz = new Size(60,60) | |
let bmp:Bitmap= new Bitmap(img,siz) | |
let img:Image = bmp :> Image | |
img |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
import Data.String | |
import Graphics.UI.Gtk | |
import Graphics.UI.Gtk.Gdk.GC | |
import qualified Data.Tree as Tree | |
import qualified Data.Text as T | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
import Data.IORef | |
import Graphics.UI.Gtk | |
import Graphics.UI.Gtk.ModelView | |
import qualified Data.Text as T | |
import Graphics.UI.Gtk.Gdk.Events as Ev | |
import Data.Maybe | |
import System.IO.Unsafe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE AllowAmbiguousTypes #-} | |
data TestItem b n = TestItem {itemName::b, itemValue::n} | |
class (Num n,IsString b) => PieChartItem a b n where | |
getValue :: a -> n | |
getName :: a -> b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE LambdaCase #-} | |
{-# LANGUAGE MonoLocalBinds #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE ConstraintKinds #-} | |
{-# LANGUAGE RankNTypes #-} | |
{-# LANGUAGE Rank2Types #-} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE DeriveFunctor #-} | |
{-# LANGUAGE DeriveAnyClass #-} | |
import Data.Sequence | |
import Control.Monad | |
import Control.Monad.IO.Class | |
import Control.Applicative | |
import Control.Monad.Trans.Free | |
data ThreadF next = Fork next next |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE LambdaCase #-} | |
{-# LANGUAGE MonoLocalBinds #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
module Main where |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE DeriveFunctor #-} | |
import System.Random | |
import Data.List | |
import Data.String | |
import System.Console.ANSI | |
import Control.Monad.Free | |
import Prelude | |
initState = ["0", "1", "2", "3", "4", "5", "6", "7", "8" ] |
NewerOlder