This file has been truncated, but you can view the full file.
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
AA | |
AAH | |
AAHED | |
AAHING | |
AAHS | |
AAL | |
AALII | |
AALIIS | |
AALS | |
AARDVARK |
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
#!/usr/bin/env cabal | |
{- cabal: | |
build-depends: base, scalpel | |
-} | |
{-# LANGUAGE OverloadedStrings #-} | |
import Control.Monad | |
import Data.Char | |
import Data.List | |
import Data.Maybe |
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
#!/usr/bin/env cabal | |
{- cabal: | |
build-depends: array, base, containers | |
-} | |
import Control.Monad | |
import Control.Monad.ST | |
import Data.Array.ST | |
import Data.Array.Unboxed | |
import Data.Graph |
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 RecordWildCards #-} | |
-- | Problem https://www.hackerrank.com/challenges/expressions | |
import Control.Applicative | |
import Control.Arrow | |
import Control.Monad | |
import Control.Monad.Trans.Class | |
import Control.Monad.Trans.Maybe | |
import Control.Monad.Trans.State |
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
#!/usr/bin/env cabal | |
{- cabal: | |
build-depends: base | |
-} | |
{-# LANGUAGE DeriveFunctor #-} | |
import Control.Applicative | |
import Control.Monad | |
import Data.Char |
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
-- Turn off output for resource usage and types. This is to reduce verbosity when reloading this file. | |
:unset +s +t | |
-- Turn on multi-line input and remove the distracting verbosity. | |
:set +m -v0 | |
-- Turn off all compiler warnings and turn on OverloadedStrings for interactive input. | |
:seti -w -XOverloadedStrings | |
-- Set the preferred editor for use with the :e command. I would recommend using an editor in a separate terminal, and using :r to reload, but :e can still be useful for quick edits from within GHCi. | |
:set editor vim | |
:def! hoogle \x -> return $ ":!hoogle --color \"" ++ x ++ "\"" |
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 FlexibleInstances #-} | |
{-# LANGUAGE RecordWildCards #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-| | |
Module : Main | |
Description : A Haskell code template designed for competitive programming, targeting platforms like CodeForces. | |
Presenting a Haskell code template designed for competitive programming, targeting platforms like CodeForces. | |
The template offers a modular structure to handle diverse tasks including input/output management, parsing, test case segmentation, and formatting. |