Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a9b2cfb

Browse files
committed
Template: Enable TypeApplications by default
1 parent 2dba539 commit a9b2cfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎gen.lua‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ end
1919
fh = assert(io.open(filename, "w"))
2020
fh:write([[
2121
-- https://github.com/minoki/my-atcoder-solutions
22-
{-# LANGUAGE ScopedTypeVariables #-}
22+
{-# LANGUAGE TypeApplications #-}
2323
{-# LANGUAGE BangPatterns #-}
2424
import Data.Char (isSpace)
2525
import Data.Int (Int64)
@@ -30,7 +30,7 @@ import qualified Data.Vector.Unboxed.Mutable as UM
3030
import qualified Data.ByteString.Char8 as BS
3131
3232
main = do
33-
_ :: [Int] <- map (read . BS.unpack) . BS.words <$> BS.getLine
33+
_ <- map (read @Int . BS.unpack) . BS.words <$> BS.getLine
3434
[n,m] <- unfoldr (BS.readInt . BS.dropWhile isSpace) <$> BS.getLine
3535
edges <- U.replicateM m $ do
3636
[x,y,z] <- unfoldr (BS.readInt . BS.dropWhile isSpace) <$> BS.getLine

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /