Skip to content

Instantly share code, notes, and snippets.

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
<LangVersion>8.0</LangVersion>
<!-- for Visual Studio 16.2.x Preview -->
<Nullable>enable</Nullable>
module TypeClassTest where
import Prelude
import Unsafe.Coerce (unsafeCoerce)
class TwoParams a b where
func :: a -> b
instance equals :: TwoParams a a where
func = identity
@acple
acple / TailRecursion.cs
Created June 6, 2016 12:09
C#の末尾呼び出し最適化がいろいろおかしいって話
using System.Diagnostics;
using static System.Console;
class Program
{
static void Main(string[] args)
{
// 末尾再帰の検証 .NET framework 4.6.1 / Release_x64
//A(10000000); // -> StackOverflowException!!!!
@acple
acple / SandS.ahk
Last active December 7, 2023 08:37
;; SandS for AutoHotkey
;; ===初期設定==========================================================
;; 多重起動の制御をforceに指定
#SingleInstance force
;; 環境変数を無視する
#NoEnv