Skip to content

Commit 176633d

Browse files
authored
Fix line endings and formatting to match project (#132)
1 parent cc98047 commit 176633d

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

src/Data/String/Regex/Unsafe.purs

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
module Data.String.Regex.Unsafe
2-
( unsafeRegex
3-
) where
4-
5-
import Control.Category (identity)
6-
import Data.Either (either)
7-
import Data.String.Regex (Regex, regex)
8-
import Data.String.Regex.Flags (RegexFlags)
9-
10-
import Partial.Unsafe (unsafeCrashWith)
11-
12-
-- | Constructs a `Regex` from a pattern string and flags. Fails with
13-
-- | an exception if the pattern contains a syntax error.
14-
unsafeRegex :: String -> RegexFlags -> Regex
15-
unsafeRegex s f = either unsafeCrashWith identity (regex s f)
1+
module Data.String.Regex.Unsafe
2+
( unsafeRegex
3+
) where
4+
5+
import Control.Category (identity)
6+
import Data.Either (either)
7+
import Data.String.Regex (Regex, regex)
8+
import Data.String.Regex.Flags (RegexFlags)
9+
import Partial.Unsafe (unsafeCrashWith)
10+
11+
-- | Constructs a `Regex` from a pattern string and flags. Fails with
12+
-- | an exception if the pattern contains a syntax error.
13+
unsafeRegex :: String -> RegexFlags -> Regex
14+
unsafeRegex s f = either unsafeCrashWith identity (regex s f)

0 commit comments

Comments
 (0)