Skip to content

Instantly share code, notes, and snippets.

Shao Cheng TerrorJack

View GitHub Profile
View ahc-ld.prof
This file has been truncated, but you can view the full file.
Sun Mar 24 14:57 2019 Time and Allocation Profiling Report (Final)
ahc-ld +RTS -p -RTS @/tmp/ghc3268_0/ghc_10.rsp
total time = 31.35 secs (31354 ticks @ 1000 us, 1 processor)
total alloc = 56,677,062,712 bytes (excludes profiling overheads)
COST CENTRE MODULE SRC %time %alloc
View gist:a4a249294ce43cde7d068fff6c90ce40
App
(App
(Var
(Var
"templatezmhaskell_LanguageziHaskellziTHziLibziInternal_sigE"))
(App
(App
(App
(Var
(Var
View foobar.strace
7669 execve("/bin/mv", ["mv", "foo", "bar"], 0x7ffff7a9cd78 /* 20 vars */) = 0
7669 brk(NULL) = 0x7fffc3278000
7669 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
7669 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
7669 fstat(3, {st_mode=S_IFREG|0644, st_size=26664, ...}) = 0
7669 mmap(NULL, 26664, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f450c52f000
7669 close(3) = 0
7669 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
7669 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@k\0\0\0\0\0\0"..., 832) = 832
7669 fstat(3, {st_mode=S_IFREG|0644, st_size=155296, ...}) = 0
View gist:7886031f2da28c427037a38c2701bf52
let factorial : int -> int = fun num ->
let rec helper : int -> int -> int = fun n acc ->
if n > 0
then helper (n-1) (acc * n)
else acc
in
helper num 1
;;
View gist:b8fcda6e3e5de3a0180bb0f94820f8ee
Preprocessing library for test-0.0.1..
Building library for test-0.0.1..
Using binary package database: /mnt/c/Users/Think/Documents/Haskell/asterius/.stack-work/install/x86_64-linux/ghc-8.7/8.7.20190217/share/x86_64-linux-ghc-8.7.20190217/asterius-0.0.1/.boot/asterius_lib/package.conf.d/package.cache
Using binary package database: dist/package.conf.inplace/package.cache
package flags [-package-id base-4.12.0.0-JnKKLQIOONeDRirkEsAqF2{unit base-4.12.0.0-JnKKLQIOONeDRirkEsAqF2 True ([])}]
loading package database /mnt/c/Users/Think/Documents/Haskell/asterius/.stack-work/install/x86_64-linux/ghc-8.7/8.7.20190217/share/x86_64-linux-ghc-8.7.20190217/asterius-0.0.1/.boot/asterius_lib/package.conf.d
loading package database dist/package.conf.inplace
wired-in package ghc-prim mapped to ghc-prim-0.5.3-D5yTV0DK5iW2rkul1Hko6R
wired-in package integer-wired-in mapped to integer-simple-0.1.1.1-BWjO7EB2UNE5YrmaVNqm0s
wired-in package base mapped to base-4.12.0.0-JnKKLQIOONeDRirkEsAqF2
View 0.configure.txt
Using Parsec parser
Configuring test-0.0.1...
creating dist/build
creating dist
creating dist/build
Searching for ghc in path.
Found ghc at
/home/terrorjack/.stack/programs/x86_64-linux/ghc-8.7.20181115/bin/ghc
/home/terrorjack/.stack/programs/x86_64-linux/ghc-8.7.20181115/bin/ghc --numeric-version
/home/terrorjack/.stack/programs/x86_64-linux/ghc-8.7.20181115/bin/ghc is
@TerrorJack
TerrorJack / 0.configure.txt
Last active Feb 14, 2019
Cabal single package case study
View 0.configure.txt
Using Parsec parser
Configuring random-1.1...
creating dist/build
creating dist
creating dist/build
Searching for ghc in path.
Found ghc at
/home/terrorjack/.stack/programs/x86_64-linux/ghc-8.7.20181115/bin/ghc
/home/terrorjack/.stack/programs/x86_64-linux/ghc-8.7.20181115/bin/ghc --numeric-version
/home/terrorjack/.stack/programs/x86_64-linux/ghc-8.7.20181115/bin/ghc is
@TerrorJack
TerrorJack / v3.txt
Last active Feb 11, 2019
Cabal case study
View v3.txt
File monitor 'config' changed: first run
Project settings changed, reconfiguring...
creating /tmp/random/random-1.1/dist-newstyle
creating /tmp/random/random-1.1/dist-newstyle/cache
The package description file ./random.cabal has warnings: random.cabal:15:2:
Tabs used as indentation at 15:2, 16:2, 17:2
this build was affected by the following (project) config files:
File monitor 'improved-plan' changed: first run
File monitor 'elaborated-plan' changed: first run
File monitor 'compiler' changed: first run
View FList.hs
{-# LANGUAGE GADTs #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
module FList
( FList
) where
import GHC.Exts
View DeBruijn.hs
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE RankNTypes #-}
module DeBruijn
( Expr(..)
, DBI(..)
, toDBI
) where
import Control.Applicative
You can’t perform that action at this time.