Skip to content

Instantly share code, notes, and snippets.

import Foundation
public class CredentialHelper {
// MARK: Init
private var host: String
private var protectionSpace: NSURLProtectionSpace
public init(host: String) {
self.host = host
protectionSpace = NSURLProtectionSpace(host: host, port: 0, `protocol`: "http", realm: nil, authenticationMethod: nil)

How to install latest GHC 7.8.3 + cabal 1.20.2 on ubuntu

ghc

ubuntu prerequisites

# Multiprecision arithmetic library developers tools
sudo apt-get install libgmp-dev -y
sudo -K
# build with
# docker build -t 'necrobious/haskell-ghc-7.8-64' .
FROM ubuntu:14.04
MAINTAINER necrobious@gmail.com
ENV DEBIAN_FRONTEND noninteractive
####### Install Dependencies ###################################################
RUN apt-get -y update