Skip to content

Instantly share code, notes, and snippets.

@david-hoze
david-hoze / gist:16dfe4883c90d9bfc9b64411b4cb1805
Created January 23, 2026 03:53
VS Code Haskell Language Server output when specifying direct configuration of packages with "bytestring-0.11.5.4"
2026-01-23 03:51:10.3000000 [client] INFO Finding haskell-language-server
2026-01-23 03:51:10.3010000 [client] INFO Checking for ghcup installation
2026-01-23 03:51:10.6210000 [client] INFO found ghcup at ghcup
2026-01-23 03:51:10.6210000 [client] INFO Executing 'ghcup --no-verbose upgrade' in cwd 'C:\Users\david\AppData\Local\Programs\Microsoft VS Code'
2026-01-23 03:51:11.6480000 [client] INFO Checking for ghcup installation
2026-01-23 03:51:11.9590000 [client] INFO found ghcup at ghcup
2026-01-23 03:51:11.9600000 [client] INFO Executing 'ghcup --no-verbose list -t hls -c installed -r' in cwd 'C:\Users\david\AppData\Local\Programs\Microsoft VS Code'
2026-01-23 03:51:12.1960000 [client] INFO Checking for ghcup installation
2026-01-23 03:51:12.5000000 [client] INFO found ghcup at ghcup
2026-01-23 03:51:12.5010000 [client] INFO Executing 'ghcup --no-verbose list -t cabal -c set -r' in cwd 'C:\Users\david\AppData\Local\Programs\Microsoft VS Code'
@david-hoze
david-hoze / gist:7f2de00888fe7ae739338c82ed4f5973
Last active January 23, 2026 03:48
VS Code Haskell Language Server output when specifying direct configuration of packages
2026-01-23 03:43:09.7030000 [client] INFO Finding haskell-language-server
2026-01-23 03:43:09.7040000 [client] INFO Checking for ghcup installation
2026-01-23 03:43:10.0720000 [client] INFO found ghcup at ghcup
2026-01-23 03:43:10.0730000 [client] INFO Executing 'ghcup --no-verbose upgrade' in cwd 'C:\Users\david\AppData\Local\Programs\Microsoft VS Code'
2026-01-23 03:43:10.9860000 [client] INFO Checking for ghcup installation
2026-01-23 03:43:11.2830000 [client] INFO found ghcup at ghcup
2026-01-23 03:43:11.2840000 [client] INFO Executing 'ghcup --no-verbose list -t hls -c installed -r' in cwd 'C:\Users\david\AppData\Local\Programs\Microsoft VS Code'
2026-01-23 03:43:11.4780000 [client] INFO Checking for ghcup installation
2026-01-23 03:43:11.7700000 [client] INFO found ghcup at ghcup
2026-01-23 03:43:11.7710000 [client] INFO Executing 'ghcup --no-verbose list -t cabal -c set -r' in cwd 'C:\Users\david\AppData\Local\Programs\Microsoft VS Code'
@david-hoze
david-hoze / gist:82d51f671bcc1c0ecca7d323cb0dff48
Created January 23, 2026 03:36
VS Code Haskell Language Server output when taking configuration from cabal
2026-01-23 03:29:35.3150000 [client] INFO Finding haskell-language-server
2026-01-23 03:29:35.3180000 [client] INFO Checking for ghcup installation
2026-01-23 03:29:35.6630000 [client] INFO found ghcup at ghcup
2026-01-23 03:29:35.6640000 [client] INFO Executing 'ghcup --no-verbose upgrade' in cwd 'C:\Users\david\AppData\Local\Programs\Microsoft VS Code'
2026-01-23 03:29:35.9320000 [client] INFO Checking for ghcup installation
2026-01-23 03:29:36.2280000 [client] INFO found ghcup at ghcup
2026-01-23 03:29:36.2290000 [client] INFO Executing 'ghcup --no-verbose list -t hls -c installed -r' in cwd 'C:\Users\david\AppData\Local\Programs\Microsoft VS Code'
2026-01-23 03:29:36.4370000 [client] INFO Checking for ghcup installation
2026-01-23 03:29:36.7440000 [client] INFO found ghcup at ghcup
2026-01-23 03:29:36.7450000 [client] INFO Executing 'ghcup --no-verbose list -t cabal -c set -r' in cwd 'C:\Users\david\AppData\Local\Programs\Microsoft VS Code'
@david-hoze
david-hoze / checksum_calculation.md
Last active December 12, 2025 22:20
How to Calculate IP/TCP/UDP Checksum
@david-hoze
david-hoze / FetchedResultsStandaloneDelegate.swift
Created April 7, 2016 07:38
A standalone FetchedResultsDelegate like the one in JSQDataSourcesKit for working with any data source for UITableViewController or UICollectionViewController
//
// CollectionViewFetchedResultsStandaloneDelegateProvider.swift
// Reporty
//
// Created by Amitai Hoze on 06/04/2016.
// Copyright © 2016 Reporty Homeland Security Ltd. All rights reserved.
//
import CoreData
import Foundation
@david-hoze
david-hoze / Example.swift
Created January 19, 2016 13:41
NSObject equality operator bug workaround
class Point: NSObject {
var x: Int
var y: Int
init(_ x: Int,_ y: Int) {
self.x = x
self.y = y
}
}