Skip to content

Instantly share code, notes, and snippets.

👀
Staring

Julian Ospald hasufell

👀
Staring
Block or report user

Report or block hasufell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View main.rs
extern crate gtk;
extern crate gdk;
#[macro_use]
extern crate lazy_static;
use gdk::EventButton;
use gdk::EventType;
use std::boxed::Box;
View hack.patch
From feafad9422a76fbb0f07dda05f74c3c14e39d068 Mon Sep 17 00:00:00 2001
From: Julian Ospald <hasufell@posteo.de>
Date: Sun, 24 Jul 2016 22:18:49 +0200
Subject: [PATCH] Foo
---
Setup.lhs | 1 +
1 file changed, 1 insertion(+)
diff --git a/Setup.lhs b/Setup.lhs
View Minimax.hs
module Minimax where
import Data.Maybe
import Safe
type Move = (Int, Int)
type Field = (Int, Int, Player)
@hasufell
hasufell / 0001-modules-config-add-accept-force-and-accept-all-force.patch
Last active Aug 12, 2016
[PATCH] modules/config: add accept-force and accept-all-force
View 0001-modules-config-add-accept-force-and-accept-all-force.patch
From 8aa873b74352ce427f02b209696d719ed4e2f7e4 Mon Sep 17 00:00:00 2001
From: Julian Ospald <hasufell@posteo.de>
Date: Sat, 13 Aug 2016 00:18:15 +0200
Subject: [PATCH] modules/config: add accept-force and accept-all-force
This is useful if we don't want interactive mv mode, e.g. when
building docker containers.
---
modules/config.eclectic | 45 +++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 43 insertions(+), 2 deletions(-)
View Main.hs
{-# LANGUAGE GADTs #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE DataKinds #-}
module Main where
View 0001-cabal.exlib-fix-excablaconf-for-Cabal-1.22.5.0.patch
From ce93cd00f23d35f70a7bc2bae73153db2a627e5e Mon Sep 17 00:00:00 2001
From: Julian Ospald <hasufell@posteo.de>
Date: Mon, 30 May 2016 19:22:23 +0200
Subject: [PATCH] cabal.exlib: fix excablaconf for Cabal-1.22.5.0
Change-Id: Ie6e83d89bb33f27df64732cb32fc097d5be38f24
---
exlibs/cabal.exlib | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
View Foreign.hs
{-# LINE 1 "src/System/Posix/Directory/Foreign.hsc" #-}
module System.Posix.Directory.Foreign where
{-# LINE 2 "src/System/Posix/Directory/Foreign.hsc" #-}
import Data.Bits
import Data.List (foldl')
import Foreign.C.Types
{-# LINE 8 "src/System/Posix/Directory/Foreign.hsc" #-}
View Spec.hs
{-# LANGUAGE OverloadedStrings #-}
import Test.Hspec
import HSFM.FileSystem.FileOperations
import Data.Maybe
(
fromJust
)
import qualified HPath as P
import System.Posix.Env.ByteString
View Test.hs
-- |Testing `Alternative` instance behavior via (<|>)
-- in conjunction with Exceptions.
--
-- Behavior is not consistent.
module Test where
import Control.Applicative
import Control.Monad.Catch
import Data.Typeable
View HMonad.hs
-- |The GUI state.
data GUIState = GUIState { mygui :: MyGUI
, myview :: MyView
}
-- |Our own monad-ish type used to pass around our GUI state
-- and allow IO actions.
newtype HMonad a = HMonad { runHMonad :: GUIState -> IO (GUIState, a) }
You can’t perform that action at this time.