This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
Register-ArgumentCompleter -Native -CommandName 'stack' -ScriptBlock { | |
param($wordToComplete, $commandAst) | |
[string[]]$localCommand = @('"--bash-completion-enriched"') | |
$hay = [System.Collections.Generic.List[string]]::new() | |
foreach ($item in $commandAst.CommandElements) { | |
$localCommand += '"--bash-completion-word"' | |
$localCommand += """$item""" | |
$hay.Add($item.ToString()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE AllowAmbiguousTypes #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE ImportQualifiedPost #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
module Main where | |
import Control.Monad.Trans.Class (MonadTrans (lift)) | |
import Control.Monad.Trans.Reader (ReaderT (runReaderT), asks) | |
import Data.Binary (Get, Word64, Word8, getWord8) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main exposing (Model, main) -- src/Main.elm | |
import Browser | |
import Html exposing (Html, div, text) | |
import Html.Attributes exposing (id) | |
import Messages exposing (Msg(..)) | |
main : Program () Model Msg | |
main = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE InstanceSigs #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE UndecidableInstances #-} | |
{-# LANGUAGE ConstraintKinds #-} | |
{-# LANGUAGE RankNTypes #-} | |
{-# LANGUAGE QuantifiedConstraints #-} | |
module ArrowLogAction where |